0001788: Book report crash

svn: r10057
This commit is contained in:
Brian Matherly 2008-02-19 04:24:56 +00:00
parent dab5470dec
commit 5ad4dcee22
3 changed files with 18 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2008-02-18 Brian Matherly <brian@gramps-project.org>
* src/plugins/BookReport.py:
* src/ReportBase/_ReportDialog.py:
0001788: Book report crash
2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com> 2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/Editors/_EditAddress.py * src/Editors/_EditAddress.py
* src/Editors/_EditName.py * src/Editors/_EditName.py

View File

@ -66,14 +66,15 @@ class ReportDialog(BareReportDialog):
dialog for a stand-alone report. dialog for a stand-alone report.
""" """
def __init__(self,dbstate,uistate,person,option_class,name,trans_name): def __init__(self, dbstate, uistate, person, option_class, name, trans_name,
track=[]):
"""Initialize a dialog to request that the user select options """Initialize a dialog to request that the user select options
for a basic *stand-alone* report.""" for a basic *stand-alone* report."""
self.style_name = "default" self.style_name = "default"
self.page_html_added = False self.page_html_added = False
BareReportDialog.__init__(self, dbstate, uistate, person, option_class, BareReportDialog.__init__(self, dbstate, uistate, person, option_class,
name,trans_name) name, trans_name, track)
# Allow for post processing of the format frame, since the # Allow for post processing of the format frame, since the
# show_all task calls events that may reset values # show_all task calls events that may reset values

View File

@ -1035,7 +1035,7 @@ class BookItemDialog(ReportDialog):
def __init__(self, dbstate, uistate, option_class, name, translated_name, def __init__(self, dbstate, uistate, option_class, name, translated_name,
track=[]): track=[]):
self.category = CATEGORY_BOOK
self.database = dbstate.db self.database = dbstate.db
self.option_class = option_class self.option_class = option_class
ReportDialog.__init__(self, dbstate, uistate, None, ReportDialog.__init__(self, dbstate, uistate, None,
@ -1051,6 +1051,14 @@ class BookItemDialog(ReportDialog):
self.options.handler.save_options() self.options.handler.save_options()
def setup_target_frame(self):
"""Target frame is not used."""
pass
def parse_target_frame(self):
"""Target frame is not used."""
return 1
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #
# The final dialog - paper, format, target, etc. # The final dialog - paper, format, target, etc.