* src/Report.py (Report.__init__): Proper use of output;
(report): Typo; (cl_report): Use begin_report and finish_report. * src/plugins/BookReport.py (BookReportDialog.make_report): Use begin_report for each item. svn: r3844
This commit is contained in:
parent
309b2c4842
commit
346a5bfe7c
@ -19,6 +19,11 @@
|
|||||||
* src/plugins/FtmStyleDescendants.py: New date handling.
|
* src/plugins/FtmStyleDescendants.py: New date handling.
|
||||||
* src/plugins/FtmStyleAncestors.py: New date handling.
|
* src/plugins/FtmStyleAncestors.py: New date handling.
|
||||||
|
|
||||||
|
* src/Report.py (Report.__init__): Proper use of output;
|
||||||
|
(report): Typo; (cl_report): Use begin_report and finish_report.
|
||||||
|
* src/plugins/BookReport.py (BookReportDialog.make_report):
|
||||||
|
Use begin_report for each item.
|
||||||
|
|
||||||
2004-12-28 Don Allingham <dallingham@users.sourceforge.net>
|
2004-12-28 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/DateEdit.py: use global date displayer/parser
|
* src/DateEdit.py: use global date displayer/parser
|
||||||
* src/DateHandler.py: provide global date displayer/parser
|
* src/DateHandler.py: provide global date displayer/parser
|
||||||
|
@ -213,7 +213,7 @@ class Report:
|
|||||||
|
|
||||||
if options_class.get_output():
|
if options_class.get_output():
|
||||||
self.standalone = True
|
self.standalone = True
|
||||||
self.doc.open(output)
|
self.doc.open(options_class.get_output())
|
||||||
self.doc.init()
|
self.doc.init()
|
||||||
else:
|
else:
|
||||||
self.standalone = False
|
self.standalone = False
|
||||||
@ -1741,7 +1741,7 @@ def report(database,person,report_class,options_class,translated_name,name,categ
|
|||||||
MyReport = report_class(dialog.db,dialog.person,dialog.options)
|
MyReport = report_class(dialog.db,dialog.person,dialog.options)
|
||||||
MyReport.begin_report()
|
MyReport.begin_report()
|
||||||
MyReport.write_report()
|
MyReport.write_report()
|
||||||
MyReport.end_report()
|
MyReport.finish_report()
|
||||||
except Errors.FilterError, msg:
|
except Errors.FilterError, msg:
|
||||||
(m1,m2) = msg.messages()
|
(m1,m2) = msg.messages()
|
||||||
ErrorDialog(m1,m2)
|
ErrorDialog(m1,m2)
|
||||||
@ -1785,7 +1785,9 @@ def cl_report(database,name,category,report_class,options_class,options_str_dict
|
|||||||
clr.option_class.handler.doc = clr.format(
|
clr.option_class.handler.doc = clr.format(
|
||||||
clr.selected_style,clr.paper,clr.template_name,clr.orien)
|
clr.selected_style,clr.paper,clr.template_name,clr.orien)
|
||||||
MyReport = report_class(database, clr.person, clr.option_class)
|
MyReport = report_class(database, clr.person, clr.option_class)
|
||||||
|
MyReport.begin_report()
|
||||||
MyReport.write_report()
|
MyReport.write_report()
|
||||||
|
MyReport.finish_report()
|
||||||
except:
|
except:
|
||||||
import DisplayTrace
|
import DisplayTrace
|
||||||
DisplayTrace.DisplayTrace()
|
DisplayTrace.DisplayTrace()
|
||||||
|
@ -1029,6 +1029,7 @@ class BookReportDialog(Report.ReportDialog):
|
|||||||
|
|
||||||
self.doc.init()
|
self.doc.init()
|
||||||
for item in self.rptlist:
|
for item in self.rptlist:
|
||||||
|
item.begin_report()
|
||||||
item.write_report()
|
item.write_report()
|
||||||
self.doc.close()
|
self.doc.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user