Commit 17f7d2dc authored by Jean-Paul Smets's avatar Jean-Paul Smets

fixed missing variable

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16168 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 86dc29e3
......@@ -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)
......
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