Commit 8f1e98d4 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Fixed various for multi skin rendering


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1258 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fca499c4
...@@ -133,12 +133,18 @@ class PDFTemplate(ZopePageTemplate): ...@@ -133,12 +133,18 @@ class PDFTemplate(ZopePageTemplate):
return self.formSettings(manage_tabs_message=message) return self.formSettings(manage_tabs_message=message)
# Proxy method to PageTemplate # Proxy method to PageTemplate
def __call__(self, *args, **kwargs): def pt_render(self, source=0, extra_context={}):
doc_xml = ZopePageTemplate.__call__(self, *args, **kwargs) doc_xml = ZopePageTemplate.pt_render(self, source=source, extra_context=extra_context)
batch_mode = kwargs.get('batch_mode', 0) # Unmarshall arguments to __call__ API
args = extra_context.get('options', None)
request = kwargs.get('REQUEST', None) kwargs = extra_context.copy()
if kwargs.has_key('options'): del kwargs['options']
if kwargs.has_key('context'): del kwargs['context']
batch_mode = extra_context.get('batch_mode', 0)
request = extra_context.get('REQUEST', None)
if not request: if not request:
request = get_request() request = get_request()
......
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