summaryrefslogtreecommitdiff
path: root/bin/report/render/rml2pdf
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-12-14 18:28:26 +0200
committerP. Christeas <p_christ@hol.gr>2010-12-14 18:28:26 +0200
commit5c6bd686abf73b4d8deb2ce2646d0f47dbdb237d (patch)
tree93faf023448ceffc2dc17988c58b7a51e69b395f /bin/report/render/rml2pdf
parent10c0a345e84963e0039e7da56438893a73a008f7 (diff)
reports: fix some default args, import message, empty translations
bzr revid: p_christ@hol.gr-20101214162826-79ppx7qw23ag3qx0
Diffstat (limited to 'bin/report/render/rml2pdf')
-rw-r--r--bin/report/render/rml2pdf/trml2pdf.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/report/render/rml2pdf/trml2pdf.py b/bin/report/render/rml2pdf/trml2pdf.py
index b609528177e..d01317f8257 100644
--- a/bin/report/render/rml2pdf/trml2pdf.py
+++ b/bin/report/render/rml2pdf/trml2pdf.py
@@ -942,8 +942,12 @@ class _rml_template(object):
fis.append(PageCount())
self.doc_tmpl.build(fis)
-def parseNode(rml, localcontext = {},fout=None, images={}, path='.',title=None):
+def parseNode(rml, localcontext=None,fout=None, images=None, path='.',title=None):
node = etree.XML(rml)
+ if localcontext is None:
+ localcontext = {}
+ if images is None:
+ images = {}
r = _rml_doc(node, localcontext, images, path, title=title)
#try to override some font mappings
try: