improve code

bzr revid: apa@tinyerp.com-20101007101127-bpk7wfsxrz2q649q
This commit is contained in:
apa-tiny 2010-10-07 15:41:27 +05:30
parent 18a9848662
commit d480253a46
1 changed files with 2 additions and 0 deletions

View File

@ -860,6 +860,8 @@ class _rml_template(object):
self.doc_tmpl.addPageTemplates(self.page_templates)
def render(self, node_stories):
if self.localcontext and not self.localcontext.get('internal_header',False):
del self.localcontext['internal_header']
fis = []
r = _rml_flowable(self.doc,self.localcontext, images=self.images, path=self.path, title=self.title)
story_cnt = 0