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): ...@@ -365,7 +365,7 @@ class OOoDocument(File, ConversionCacheMixin):
# we receive a zip file # we receive a zip file
cs = cStringIO.StringIO() cs = cStringIO.StringIO()
cs.write(_unpackData(data)) 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(): for f in z.infolist():
fn = f.filename fn = f.filename
if fn.endswith('html'): if fn.endswith('html'):
...@@ -378,7 +378,7 @@ class OOoDocument(File, ConversionCacheMixin): ...@@ -378,7 +378,7 @@ class OOoDocument(File, ConversionCacheMixin):
if display is None or original_format not in STANDARD_IMAGE_FORMAT_LIST: if display is None or original_format not in STANDARD_IMAGE_FORMAT_LIST:
self.setConversion(data, mime, format=format) self.setConversion(data, mime, format=format)
else: else:
self.portal_contributions.newContent( temp_image = self.portal_contributions.newContent(
portal_type='Image', portal_type='Image',
temp_object=1) temp_object=1)
temp_image._setData(data) 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