[Erp5-report] r35395 nicolas - /erp5/trunk/products/ERP5OOo/Document/OOoDocument.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon May 17 16:07:30 CEST 2010


Author: nicolas
Date: Mon May 17 16:07:24 2010
New Revision: 35395

URL: http://svn.erp5.org?rev=35395&view=rev
Log:
r35370 was not a revert, it invert condition.
Re-apply patch r35339 for same reasons.

Modified:
    erp5/trunk/products/ERP5OOo/Document/OOoDocument.py

Modified: erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/Document/OOoDocument.py?rev=35395&r1=35394&r2=35395&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/Document/OOoDocument.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/Document/OOoDocument.py [utf8] Mon May 17 16:07:24 2010
@@ -309,7 +309,7 @@
     """
     #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




More information about the Erp5-report mailing list