From c3246a4e2091f9354a9767bf487736c900a0ded7 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Wed, 20 Feb 2008 05:07:43 +0000 Subject: [PATCH] Remove person parameter from summary and count ancestor reports. svn: r10076 --- ChangeLog | 5 +++++ src/plugins/CountAncestors.py | 3 ++- src/plugins/Summary.py | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6fe1b9a85..8037336bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-19 Brian Matherly + * src/plugins/Summary.py: + * src/plugins/CountAncestors.py: + Remove person parameter. + 2008-02-19 Douglas S. Blank * src/DbLoader.py (DbLoader.import_file): Importer will stay on dialog until cancel or success. Errors diff --git a/src/plugins/CountAncestors.py b/src/plugins/CountAncestors.py index e5c3dd94f..c1a06857a 100644 --- a/src/plugins/CountAncestors.py +++ b/src/plugins/CountAncestors.py @@ -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() diff --git a/src/plugins/Summary.py b/src/plugins/Summary.py index 7aa901a3d..bd9f46789 100644 --- a/src/plugins/Summary.py +++ b/src/plugins/Summary.py @@ -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