0001788: Book report crash
svn: r10057
This commit is contained in:
parent
dab5470dec
commit
5ad4dcee22
@ -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>
|
||||
* src/Editors/_EditAddress.py
|
||||
* src/Editors/_EditName.py
|
||||
|
@ -66,14 +66,15 @@ class ReportDialog(BareReportDialog):
|
||||
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
|
||||
for a basic *stand-alone* report."""
|
||||
|
||||
self.style_name = "default"
|
||||
self.page_html_added = False
|
||||
BareReportDialog.__init__(self,dbstate,uistate,person,option_class,
|
||||
name,trans_name)
|
||||
BareReportDialog.__init__(self, dbstate, uistate, person, option_class,
|
||||
name, trans_name, track)
|
||||
|
||||
# Allow for post processing of the format frame, since the
|
||||
# show_all task calls events that may reset values
|
||||
|
@ -1035,7 +1035,7 @@ class BookItemDialog(ReportDialog):
|
||||
|
||||
def __init__(self, dbstate, uistate, option_class, name, translated_name,
|
||||
track=[]):
|
||||
|
||||
self.category = CATEGORY_BOOK
|
||||
self.database = dbstate.db
|
||||
self.option_class = option_class
|
||||
ReportDialog.__init__(self, dbstate, uistate, None,
|
||||
@ -1051,6 +1051,14 @@ class BookItemDialog(ReportDialog):
|
||||
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user