[Erp5-report] r38529 nicolas - /erp5/trunk/products/ERP5/Document/PDFTypeInformation.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Sep 21 17:35:54 CEST 2010


Author: nicolas
Date: Tue Sep 21 17:35:51 2010
New Revision: 38529

URL: http://svn.erp5.org?rev=38529&view=rev
Log:
'format' argument is required to cause the download of image.

Modified:
    erp5/trunk/products/ERP5/Document/PDFTypeInformation.py

Modified: erp5/trunk/products/ERP5/Document/PDFTypeInformation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/PDFTypeInformation.py?rev=38529&r1=38528&r2=38529&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/PDFTypeInformation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/PDFTypeInformation.py [utf8] Tue Sep 21 17:35:51 2010
@@ -405,7 +405,8 @@ class PDFTypeInformation(ERP5TypeInforma
   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):




More information about the Erp5-report mailing list