Commit 95473103 authored by Nicolas Delaby's avatar Nicolas Delaby

get_size doesn't belong to ERP5 API. Use hasData instead


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35339 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ba4b4a5f
......@@ -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 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