Very Big Speed Improvement for big report generation

platypus.Table -> platypus.LongTable

bzr revid: fp@tinyerp.com-ccfa7849cd19abfd8aaa12563020f3206cab3165
This commit is contained in:
Fabien Pinckaers
2007-12-26 15:50:05 +00:00
parent acf7db176c
commit 13b38eb8eb
+1 -1
View File
@@ -453,7 +453,7 @@ class _rml_flowable(object):
colwidths = [utils.unit_get(f.strip()) for f in node.getAttribute('colWidths').split(',')]
if node.hasAttribute('rowHeights'):
rowheights = [utils.unit_get(f.strip()) for f in node.getAttribute('rowHeights').split(',')]
table = platypus.Table(data = data, colWidths=colwidths, rowHeights=rowheights, **(utils.attr_get(node, ['splitByRow'] ,{'repeatRows':'int','repeatCols':'int'})))
table = platypus.LongTable(data = data, colWidths=colwidths, rowHeights=rowheights, **(utils.attr_get(node, ['splitByRow'] ,{'repeatRows':'int','repeatCols':'int'})))
if node.hasAttribute('style'):
table.setStyle(self.styles.table_styles[node.getAttribute('style')])
return table