[Erp5-report] r35370 tatuya - /erp5/trunk/products/ERP5OOo/Document/OOoDocument.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon May 17 08:06:04 CEST 2010


Author: tatuya
Date: Mon May 17 08:06:03 2010
New Revision: 35370

URL: http://svn.erp5.org?rev=35370&view=rev
Log:
Revert the r35339 commit, since the commit testFormPrintoutAsODT.test_08_OOoConversion started to fail.

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=35370&r1=35369&r2=35370&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/Document/OOoDocument.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/Document/OOoDocument.py [utf8] Mon May 17 08:06:03 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.hasData():
+    if not self.get_size() == 0:
       return 'text/plain', ''
     # if no conversion asked (format empty)
     # return raw data




More information about the Erp5-report mailing list