* src/Report.py (BareReportDialog.build_style_menu):
Initialize menu to self.style_name; (ReportDialog.__init__): Set self.style_name to "default" for standalone reports. * src/plugins/DetDescendantReport.py: Define self.style_name before calling Report.BareReportDialog.__init__(). * src/plugins/AncestorReport.py: Likewise. * src/plugins/Ancestors.py: Likewise. * src/plugins/DescendReport.py: Likewise. * src/plugins/FtmStyleAncestors.py: Likewise. * src/plugins/FtmStyleDescendants.py: Likewise. * src/plugins/IndivComplete.py: Likewise. * src/plugins/IndivSummary.py: Likewise. * src/plugins/FamilyGroup.py: Likewise. * src/plugins/DetAncestralReport.py: Likewise. svn: r1861
This commit is contained in:
@@ -307,11 +307,12 @@ class AncestorBareReportDialog(Report.BareReportDialog):
|
||||
self.person = self.db.getPerson(self.options[0])
|
||||
else:
|
||||
self.person = person
|
||||
self.style_name = stl
|
||||
|
||||
Report.BareReportDialog.__init__(self,database,self.person)
|
||||
|
||||
self.max_gen = int(self.options[1])
|
||||
self.pg_brk = int(self.options[2])
|
||||
self.style_name = stl
|
||||
self.new_person = None
|
||||
|
||||
self.generations_spinbox.set_value(self.max_gen)
|
||||
|
@@ -771,12 +771,13 @@ class AncestorsBareReportDialog(Report.BareReportDialog):
|
||||
self.person = self.db.getPerson(self.options[0])
|
||||
else:
|
||||
self.person = person
|
||||
self.style_name = stl
|
||||
|
||||
Report.BareReportDialog.__init__(self,database,self.person)
|
||||
|
||||
self.max_gen = int(self.options[1])
|
||||
self.pg_brk = int(self.options[2])
|
||||
self.opt_cite = int(self.options[3])
|
||||
self.style_name = stl
|
||||
self.new_person = None
|
||||
|
||||
self.generations_spinbox.set_value(self.max_gen)
|
||||
|
@@ -201,11 +201,13 @@ class DescendantBareReportDialog(Report.BareReportDialog):
|
||||
self.person = self.db.getPerson(self.options[0])
|
||||
else:
|
||||
self.person = person
|
||||
|
||||
self.style_name = stl
|
||||
|
||||
Report.BareReportDialog.__init__(self,database,self.person)
|
||||
|
||||
self.max_gen = int(self.options[1])
|
||||
self.pg_brk = int(self.options[2])
|
||||
self.style_name = stl
|
||||
self.new_person = None
|
||||
|
||||
self.generations_spinbox.set_value(self.max_gen)
|
||||
|
@@ -960,6 +960,7 @@ class DetAncestorBareReportDialog(Report.BareReportDialog):
|
||||
self.person = self.db.getPerson(self.options[0])
|
||||
else:
|
||||
self.person = person
|
||||
self.style_name = stl
|
||||
|
||||
self.max_gen = int(self.options[1])
|
||||
self.pg_brk = int(self.options[2])
|
||||
@@ -976,7 +977,6 @@ class DetAncestorBareReportDialog(Report.BareReportDialog):
|
||||
|
||||
Report.BareReportDialog.__init__(self,database,self.person)
|
||||
|
||||
self.style_name = stl
|
||||
self.new_person = None
|
||||
|
||||
self.window.run()
|
||||
|
@@ -982,9 +982,10 @@ class DetDescendantBareReportDialog(Report.BareReportDialog):
|
||||
self.child_ref = int(self.options[11])
|
||||
self.images = int(self.options[12])
|
||||
|
||||
self.style_name = stl
|
||||
|
||||
Report.BareReportDialog.__init__(self,database,self.person)
|
||||
|
||||
self.style_name = stl
|
||||
self.new_person = None
|
||||
|
||||
self.window.run()
|
||||
|
@@ -450,11 +450,12 @@ class FamilyGroupBareDialog(Report.BareReportDialog):
|
||||
self.person = self.db.getPerson(self.options[0])
|
||||
else:
|
||||
self.person = person
|
||||
self.style_name = stl
|
||||
|
||||
Report.BareReportDialog.__init__(self,database,self.person)
|
||||
|
||||
self.spouse_name = self.options[1]
|
||||
|
||||
self.style_name = stl
|
||||
self.new_person = None
|
||||
|
||||
self.spouse_map = _build_spouse_map(self.person)
|
||||
|
@@ -854,11 +854,12 @@ class FtmAncestorBareReportDialog(Report.BareReportDialog):
|
||||
self.person = self.db.getPerson(self.options[0])
|
||||
else:
|
||||
self.person = person
|
||||
self.style_name = stl
|
||||
|
||||
Report.BareReportDialog.__init__(self,database,self.person)
|
||||
|
||||
self.max_gen = int(self.options[1])
|
||||
self.pg_brk = int(self.options[2])
|
||||
self.style_name = stl
|
||||
self.new_person = None
|
||||
|
||||
self.generations_spinbox.set_value(self.max_gen)
|
||||
|
@@ -1260,12 +1260,12 @@ class FtmDescendantBareReportDialog(Report.BareReportDialog):
|
||||
self.person = self.db.getPerson(self.options[0])
|
||||
else:
|
||||
self.person = person
|
||||
self.style_name = stl
|
||||
|
||||
Report.BareReportDialog.__init__(self,database,self.person)
|
||||
|
||||
self.max_gen = int(self.options[1])
|
||||
self.pg_brk = int(self.options[2])
|
||||
self.style_name = stl
|
||||
self.new_person = None
|
||||
|
||||
self.generations_spinbox.set_value(self.max_gen)
|
||||
|
@@ -556,12 +556,13 @@ class IndivCompleteBareReportDialog(Report.BareReportDialog):
|
||||
self.person = self.db.getPerson(self.options[0])
|
||||
else:
|
||||
self.person = person
|
||||
self.style_name = stl
|
||||
|
||||
Report.BareReportDialog.__init__(self,database,self.person)
|
||||
|
||||
self.max_gen = int(self.options[1])
|
||||
self.pg_brk = int(self.options[2])
|
||||
self.filter_num = int(self.options[3])
|
||||
self.style_name = stl
|
||||
self.new_person = None
|
||||
|
||||
self.generations_spinbox.set_value(self.max_gen)
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000 Donald N. Allingham
|
||||
# Copyright (C) 2000-2003 Donald N. Allingham
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -493,11 +493,12 @@ class IndivSummaryBareReportDialog(Report.BareReportDialog):
|
||||
self.person = self.db.getPerson(self.options[0])
|
||||
else:
|
||||
self.person = person
|
||||
self.style_name = stl
|
||||
|
||||
Report.BareReportDialog.__init__(self,database,self.person)
|
||||
|
||||
self.max_gen = int(self.options[1])
|
||||
self.pg_brk = int(self.options[2])
|
||||
self.style_name = stl
|
||||
self.new_person = None
|
||||
|
||||
self.generations_spinbox.set_value(self.max_gen)
|
||||
|
Reference in New Issue
Block a user