Commit 89fa6f2e authored by Nicolas Delaby's avatar Nicolas Delaby

extra_context does not have options key

reviewed by romain


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32011 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 002603d0
No related merge requests found
......@@ -239,10 +239,9 @@ class FormPrintout(Implicit, Persistent, RoleManager, Item):
extra_context -- extra_context including a format
REQUEST -- Request object
"""
options = extra_context.get('options', {})
format = None
if REQUEST is not None:
format = options.get('format', REQUEST.get('format', None))
format = REQUEST.get('format', None)
if format is None:
if REQUEST is not None:
REQUEST.RESPONSE.setHeader('Content-Type','%s; charset=utf-8' % content_type)
......
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