Remove person parameter from summary and count ancestor reports.

svn: r10076
This commit is contained in:
Brian Matherly 2008-02-20 05:07:43 +00:00
parent c76b017d64
commit c3246a4e20
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2008-02-19 Brian Matherly <brian@gramps-project.org>
* src/plugins/Summary.py:
* src/plugins/CountAncestors.py:
Remove person parameter.
2008-02-19 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/DbLoader.py (DbLoader.import_file):
Importer will stay on dialog until cancel or success. Errors

View File

@ -56,7 +56,8 @@ import ManagedWindow
#------------------------------------------------------------------------
class CountAncestors(ManagedWindow.ManagedWindow):
def __init__(self,dbstate,uistate,person):
def __init__(self, dbstate, uistate):
person = dbstate.get_active_person()
self.title = _('Ancestors of "%s"') \
% person.get_primary_name().get_name()

View File

@ -55,7 +55,7 @@ import ManagedWindow
# Build the text of the report
#
#------------------------------------------------------------------------
def build_report(database,person):
def build_report(database):
personList = database.get_person_handles(sort_handles=False)
familyList = database.get_family_handles()
@ -147,12 +147,12 @@ def build_report(database,person):
#
#------------------------------------------------------------------------
class SummaryReport(ManagedWindow.ManagedWindow):
def __init__(self,dbstate,uistate,person):
def __init__(self, dbstate, uistate):
self.title = _('Database summary')
ManagedWindow.ManagedWindow.__init__(self,uistate,[],self.__class__)
database = dbstate.db
text = build_report(database,person)
text = build_report(database)
base = os.path.dirname(__file__)
glade_file = "%s/summary.glade" % base