diff --git a/ChangeLog b/ChangeLog index 3d69533d8..2f44b5326 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-18 Brian Matherly + * src/plugins/BookReport.py: + * src/ReportBase/_ReportDialog.py: + 0001788: Book report crash + 2008-02-18 Raphael Ackermann * src/Editors/_EditAddress.py * src/Editors/_EditName.py diff --git a/src/ReportBase/_ReportDialog.py b/src/ReportBase/_ReportDialog.py index 8bee423ec..22e774de1 100644 --- a/src/ReportBase/_ReportDialog.py +++ b/src/ReportBase/_ReportDialog.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 diff --git a/src/plugins/BookReport.py b/src/plugins/BookReport.py index 6979ccd5c..e24eccb25 100644 --- a/src/plugins/BookReport.py +++ b/src/plugins/BookReport.py @@ -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, @@ -1050,6 +1050,14 @@ class BookItemDialog(ReportDialog): self.parse_user_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 #------------------------------------------------------------------------ #