bzr revid: apa@tinyerp.com-20101006132534-6nzxh5d8ngby0fy0
This commit is contained in:
apa-tiny
2010-10-06 18:55:34 +05:30
parent ca004d74db
commit 10bb97ea32
+4 -3
View File
@@ -819,10 +819,11 @@ class TinyDocTemplate(platypus.BaseDocTemplate):
class _rml_template(object):
def __init__(self, localcontext, out, node, doc, images={}, path='.', title=None):
if not localcontext:
localcontext={'header':'internal'}
if not localcontext.get('header',True):
localcontext.update({'header':'internal'})
self.localcontext = localcontext
if not self.localcontext or not self.localcontext.get('header',False):
self.localcontext={}
self.localcontext.update({'header':'internal'})
self.images= images
self.path = path
self.title = title