Commit 2396541d authored by Nicolas Delaby's avatar Nicolas Delaby

'format' argument is required to cause the download of image.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38529 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c0c8ad30
......@@ -405,7 +405,8 @@ class PDFTypeInformation(ERP5TypeInformation):
def renderFormImage(self, REQUEST, RESPONSE, page):
"""
"""
return self.getERP5FormImage(page).index_html(REQUEST, RESPONSE)
return self.getERP5FormImage(page).index_html(REQUEST, RESPONSE,
format='jpg')
security.declareProtected(Permissions.View, 'renderFormCSS')
def renderFormCSS(self):
......
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