* 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:
Alex Roitman 2004-12-30 04:12:01 +00:00
parent 309b2c4842
commit 346a5bfe7c
3 changed files with 10 additions and 2 deletions

View File

@ -19,6 +19,11 @@
* src/plugins/FtmStyleDescendants.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>
* src/DateEdit.py: use global date displayer/parser
* src/DateHandler.py: provide global date displayer/parser

View File

@ -213,7 +213,7 @@ class Report:
if options_class.get_output():
self.standalone = True
self.doc.open(output)
self.doc.open(options_class.get_output())
self.doc.init()
else:
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.begin_report()
MyReport.write_report()
MyReport.end_report()
MyReport.finish_report()
except Errors.FilterError, msg:
(m1,m2) = msg.messages()
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.selected_style,clr.paper,clr.template_name,clr.orien)
MyReport = report_class(database, clr.person, clr.option_class)
MyReport.begin_report()
MyReport.write_report()
MyReport.finish_report()
except:
import DisplayTrace
DisplayTrace.DisplayTrace()

View File

@ -1029,6 +1029,7 @@ class BookReportDialog(Report.ReportDialog):
self.doc.init()
for item in self.rptlist:
item.begin_report()
item.write_report()
self.doc.close()