Commit 48893692 authored by Nicolas Delaby's avatar Nicolas Delaby

r35370 was not a revert, it invert condition.

Re-apply patch r35339 for same reasons.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35395 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 518e2cf2
......@@ -309,7 +309,7 @@ class OOoDocument(PermanentURLMixIn, BaseConvertableAndFileMixin, File,
"""
#XXX if document is empty, stop to try to convert.
#XXX but I don't know what is a appropriate mime-type.(Yusei)
if not self.get_size() == 0:
if not self.hasData():
return 'text/plain', ''
# if no conversion asked (format empty)
# return raw 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