Commit 1d43dfbd authored by Jérome Perrin's avatar Jérome Perrin

make sure *args is iterable


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9528 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67ca0244
...@@ -147,7 +147,7 @@ class PDFTemplate(ZopePageTemplate): ...@@ -147,7 +147,7 @@ class PDFTemplate(ZopePageTemplate):
doc_xml = ZopePageTemplate.pt_render(self, source=source, extra_context=extra_context) doc_xml = ZopePageTemplate.pt_render(self, source=source, extra_context=extra_context)
# Unmarshall arguments to __call__ API # Unmarshall arguments to __call__ API
args = extra_context.get('options', None) args = extra_context.get('options', [])
kwargs = extra_context.copy() kwargs = extra_context.copy()
if kwargs.has_key('options'): del kwargs['options'] if kwargs.has_key('options'): del kwargs['options']
if kwargs.has_key('context'): del kwargs['context'] if kwargs.has_key('context'): del kwargs['context']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment