Commit b80706b6 authored by Nicolas Delaby's avatar Nicolas Delaby

Revert r42179

if mimetype is empty, it is a violation of convertable interface.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42185 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7b036ae2
......@@ -80,7 +80,7 @@ class DownloadableMixin:
format = None
self._checkConversionFormatPermission(format, **kw)
mime, data = self.convert(format, **kw)
if not format and mime != "":
if not format:
# Guess the format from original mimetype
mimetypes_registry = getToolByName(self.getPortalObject(),
'mimetypes_registry')
......
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