* src/BaseDoc.py: don't check for init on table or cell addition
* src/Report.py: Call doc.init() before write_report svn: r3947
This commit is contained in:
parent
17fef1ebc6
commit
e70e6c6e68
@ -1,3 +1,7 @@
|
|||||||
|
2005-01-23 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
|
* 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 <eerot@sf>
|
2005-01-23 Eero Tamminen <eerot@sf>
|
||||||
* src/plugins/StatisticsChart.py:
|
* src/plugins/StatisticsChart.py:
|
||||||
- Complete refactoring of Extract class. There are now separate
|
- Complete refactoring of Extract class. There are now separate
|
||||||
|
@ -1206,7 +1206,6 @@ class BaseDoc:
|
|||||||
@param name: name of the table style
|
@param name: name of the table style
|
||||||
@param style: TableStyle instance to be added
|
@param style: TableStyle instance to be added
|
||||||
"""
|
"""
|
||||||
assert(self.init_called==False)
|
|
||||||
self.table_styles[name] = TableStyle(style)
|
self.table_styles[name] = TableStyle(style)
|
||||||
|
|
||||||
def add_cell_style(self,name,style):
|
def add_cell_style(self,name,style):
|
||||||
@ -1216,7 +1215,6 @@ class BaseDoc:
|
|||||||
@param name: name of the table cell style
|
@param name: name of the table cell style
|
||||||
@param style: TableCellStyle instance to be added
|
@param style: TableCellStyle instance to be added
|
||||||
"""
|
"""
|
||||||
assert(self.init_called==False)
|
|
||||||
self.cell_styles[name] = TableCellStyle(style)
|
self.cell_styles[name] = TableCellStyle(style)
|
||||||
|
|
||||||
def open(self,filename):
|
def open(self,filename):
|
||||||
|
@ -221,6 +221,7 @@ class Report:
|
|||||||
self.standalone = False
|
self.standalone = False
|
||||||
|
|
||||||
def begin_report(self):
|
def begin_report(self):
|
||||||
|
self.doc.init()
|
||||||
if self.options_class.get_newpage():
|
if self.options_class.get_newpage():
|
||||||
self.doc.page_break()
|
self.doc.page_break()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user