[Erp5-report] r32069 fabien - /erp5/trunk/products/ERP5Form/ImageField.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jan 28 17:21:26 CET 2010


Author: fabien
Date: Thu Jan 28 17:21:26 2010
New Revision: 32069

URL: http://svn.erp5.org?rev=32069&view=rev
Log:
Big images are cut into smaller chunks, so it's required to cast to str. See OFS/Image -> _read_data method for more informations

Modified:
    erp5/trunk/products/ERP5Form/ImageField.py

Modified: erp5/trunk/products/ERP5Form/ImageField.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ImageField.py?rev=32069&r1=32068&r2=32069&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ImageField.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/ImageField.py [utf8] Thu Jan 28 17:21:26 2010
@@ -138,6 +138,10 @@
       if image_data is None:
         return draw_frame_node
 
+      # Big images are cut into smaller chunks, so it's required to cast to
+      # str. See OFS/Image -> _read_data method for more informations
+      image_data = str(image_data)
+
       format = content_type.split('/')[-1]
       # add the image to the odg document
       picture_path = ooo_builder.addImage(image=image_data, format=format)




More information about the Erp5-report mailing list