Commit 717f0ffd authored by Bartek Górny's avatar Bartek Górny

fixed a bug which prevented pdf generation from working

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11234 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e5090825
......@@ -453,8 +453,9 @@ xmlns:config="http://openoffice.org/2001/config" office:version="1.0">
ooo = ooo_builder.render(self.title or self.id)
# Convert if necessary
format = extra_context.get("format", None)
if format is None:
opts = extra_context.get("options", None)
if opts is not None:
format=opts.get("format",None)
if format == "pdf":
return self._asPdf(ooo, 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