Commit 027e8c98 authored by Jérome Perrin's avatar Jérome Perrin

get format argument from request



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12503 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b1bbb37e
......@@ -456,7 +456,7 @@ xmlns:config="http://openoffice.org/2001/config" office:version="1.0">
# Convert if necessary
opts = extra_context.get("options", None)
if opts is not None:
format=opts.get("format",None)
format = opts.get('format', request.get('format', None))
if format is not None:
return self._asFormat(ooo, format, 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