Commit a249cf39 authored by Tatuya Kamada's avatar Tatuya Kamada

Revert the r35339 commit, since the commit...

Revert the r35339 commit, since the commit testFormPrintoutAsODT.test_08_OOoConversion started to fail.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35370 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d84f7045
......@@ -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.hasData():
if not self.get_size() == 0:
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