[Erp5-report] r16168 - /erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Sep 8 07:47:06 CEST 2007
Author: jp
Date: Sat Sep 8 07:47:05 2007
New Revision: 16168
URL: http://svn.erp5.org?rev=16168&view=rev
Log:
fixed missing variable
Modified:
erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
Modified: erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/Document/OOoDocument.py?rev=16168&r1=16167&r2=16168&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/Document/OOoDocument.py (original)
+++ erp5/trunk/products/ERP5OOo/Document/OOoDocument.py Sat Sep 8 07:47:05 2007
@@ -365,7 +365,7 @@
# we receive a zip file
cs = cStringIO.StringIO()
cs.write(_unpackData(data))
- z = zipfile.ZipFile(cs)
+ z = zipfile.ZipFile(cs) # A disk file would be more RAM efficient
for f in z.infolist():
fn = f.filename
if fn.endswith('html'):
@@ -378,7 +378,7 @@
if display is None or original_format not in STANDARD_IMAGE_FORMAT_LIST:
self.setConversion(data, mime, format=format)
else:
- self.portal_contributions.newContent(
+ temp_image = self.portal_contributions.newContent(
portal_type='Image',
temp_object=1)
temp_image._setData(data)
More information about the Erp5-report
mailing list