* src/Exporter.py: Set initial person in case there's no active.

* src/ViewManager.py (find_initial_person): Remove method.
* src/GrampsDb/_GrampsDbBase.py (find_initial_person): Add method.


svn: r5856
This commit is contained in:
Alex Roitman
2006-01-29 22:05:20 +00:00
parent fce7809f3a
commit c1ddf79a8e
4 changed files with 13 additions and 15 deletions

View File

@@ -75,14 +75,10 @@ class Exporter:
"""
self.dbstate = dbstate
self.uistate = uistate
# self.parent_window = parent_window
if self.dbstate.active:
self.person = self.dbstate.active
else:
pass
# FIXME: find_initial_person needs to move into dbstate or db
# and then it will be available here
# self.person = self.parent.find_initial_person()
self.person = self.dbstate.db.find_initial_person()
self.build_exports()
self.format_option = None