[POS-commit] r3879 - stoqlib/trunk/stoqlib/reporting/base
Henrique Romano
henrique at async.com.br
Fri Jul 7 15:29:17 BRT 2006
Author: henrique
Date: Fri Jul 7 15:29:16 2006
New Revision: 3879
Modified:
stoqlib/trunk/stoqlib/reporting/base/template.py
Log:
Use stoqlib reporting's Paragraph instead reportlab one
Modified: stoqlib/trunk/stoqlib/reporting/base/template.py
==============================================================================
--- stoqlib/trunk/stoqlib/reporting/base/template.py (original)
+++ stoqlib/trunk/stoqlib/reporting/base/template.py Fri Jul 7 15:29:16 2006
@@ -30,12 +30,12 @@
from reportlab.platypus import (BaseDocTemplate, Frame, PageTemplate,
KeepTogether, PageBreak, Spacer)
from reportlab.platypus.flowables import Preformatted
-from reportlab.platypus import Paragraph
from stoqlib.reporting.base import tables, flowables
from stoqlib.reporting.base.default_style import (DOC_DEFAULTS, SPACING,
STYLE_SHEET, TABLE_STYLE,
DEFAULT_MARGIN, TABLE_LINE)
+from stoqlib.reporting.base.flowables import Paragraph
class BaseReportTemplate(BaseDocTemplate):
""" Base class representing the document itself. Here is implemented all the
@@ -251,7 +251,7 @@
style = STYLE_SHEET[style]
self.add(Preformatted(text, style, *args, **kwargs))
- def add_paragraph(self, text, style='Normal', **kwargs):
+ def add_paragraph(self, text, style="Normal", **kwargs):
"""
@param text: The paragraph text.
@type: str
@@ -260,7 +260,6 @@
default_style module
@type: str
"""
- style = STYLE_SHEET[style]
self.add(Paragraph(text, style, **kwargs))
def add_line(self, *args, **kwargs):
More information about the POS-commit
mailing list