Commit 6a1dd1ac authored by Fabien Morin's avatar Fabien Morin

revert r32063 as convert should return pdata anyway, the conversion should be...

revert r32063 as convert should return pdata anyway, the conversion should be done by convert caller. Reviewed by jerome and kazuhiko

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32068 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ccf1b058
......@@ -348,9 +348,7 @@ class Image(File, OFSImage):
except KeyError:
mime, image = self._makeDisplayPhoto(**kw)
self.setConversion(image, mime, **kw)
# Big images are cut into smaller chunks, so it's required to cast to
# str. See OFS/Image -> _read_data method for more informations
return mime, str(image.data)
return mime, image.data
return self.getContentType(), self.getData()
security.declareProtected(Permissions.View, 'getSearchableText')
......
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