From e70e6c6e685f90cd37b3c34995fb67a5cb0b240c Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 24 Jan 2005 00:16:33 +0000 Subject: [PATCH] * src/BaseDoc.py: don't check for init on table or cell addition * src/Report.py: Call doc.init() before write_report svn: r3947 --- ChangeLog | 4 ++++ src/BaseDoc.py | 2 -- src/Report.py | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8b4e0603d..6b3db4c26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-01-23 Don Allingham + * src/BaseDoc.py: don't check for init on table or cell addition + * src/Report.py: Call doc.init() before write_report + 2005-01-23 Eero Tamminen * src/plugins/StatisticsChart.py: - Complete refactoring of Extract class. There are now separate diff --git a/src/BaseDoc.py b/src/BaseDoc.py index d0cc51c83..c579fef19 100644 --- a/src/BaseDoc.py +++ b/src/BaseDoc.py @@ -1206,7 +1206,6 @@ class BaseDoc: @param name: name of the table style @param style: TableStyle instance to be added """ - assert(self.init_called==False) self.table_styles[name] = TableStyle(style) def add_cell_style(self,name,style): @@ -1216,7 +1215,6 @@ class BaseDoc: @param name: name of the table cell style @param style: TableCellStyle instance to be added """ - assert(self.init_called==False) self.cell_styles[name] = TableCellStyle(style) def open(self,filename): diff --git a/src/Report.py b/src/Report.py index 06e55440c..a19738dcc 100644 --- a/src/Report.py +++ b/src/Report.py @@ -221,6 +221,7 @@ class Report: self.standalone = False def begin_report(self): + self.doc.init() if self.options_class.get_newpage(): self.doc.page_break()