diff --git a/product/ERP5OOo/Document/OOoDocument.py b/product/ERP5OOo/Document/OOoDocument.py index de375f09ddb695109cd3f67d270af4ce99fd4913..9855da93a60fd18fdcc85aa6614808182116a8b8 100644 --- a/product/ERP5OOo/Document/OOoDocument.py +++ b/product/ERP5OOo/Document/OOoDocument.py @@ -365,7 +365,7 @@ class OOoDocument(File, ConversionCacheMixin): # 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 @@ class OOoDocument(File, ConversionCacheMixin): 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)