Remove person parameter from summary and count ancestor reports.
svn: r10076
This commit is contained in:
parent
c76b017d64
commit
c3246a4e20
@ -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>
|
2008-02-19 Douglas S. Blank <dblank@cs.brynmawr.edu>
|
||||||
* src/DbLoader.py (DbLoader.import_file):
|
* src/DbLoader.py (DbLoader.import_file):
|
||||||
Importer will stay on dialog until cancel or success. Errors
|
Importer will stay on dialog until cancel or success. Errors
|
||||||
|
@ -56,7 +56,8 @@ import ManagedWindow
|
|||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
class CountAncestors(ManagedWindow.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"') \
|
self.title = _('Ancestors of "%s"') \
|
||||||
% person.get_primary_name().get_name()
|
% person.get_primary_name().get_name()
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ import ManagedWindow
|
|||||||
# Build the text of the report
|
# Build the text of the report
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
def build_report(database,person):
|
def build_report(database):
|
||||||
|
|
||||||
personList = database.get_person_handles(sort_handles=False)
|
personList = database.get_person_handles(sort_handles=False)
|
||||||
familyList = database.get_family_handles()
|
familyList = database.get_family_handles()
|
||||||
@ -147,12 +147,12 @@ def build_report(database,person):
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
class SummaryReport(ManagedWindow.ManagedWindow):
|
class SummaryReport(ManagedWindow.ManagedWindow):
|
||||||
def __init__(self,dbstate,uistate,person):
|
def __init__(self, dbstate, uistate):
|
||||||
self.title = _('Database summary')
|
self.title = _('Database summary')
|
||||||
ManagedWindow.ManagedWindow.__init__(self,uistate,[],self.__class__)
|
ManagedWindow.ManagedWindow.__init__(self,uistate,[],self.__class__)
|
||||||
|
|
||||||
database = dbstate.db
|
database = dbstate.db
|
||||||
text = build_report(database,person)
|
text = build_report(database)
|
||||||
|
|
||||||
base = os.path.dirname(__file__)
|
base = os.path.dirname(__file__)
|
||||||
glade_file = "%s/summary.glade" % base
|
glade_file = "%s/summary.glade" % base
|
||||||
|
Loading…
Reference in New Issue
Block a user