[Erp5-report] r12923 - /erp5/trunk/products/ERP5/Document/Document.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 20 18:53:46 CET 2007


Author: bartek
Date: Tue Feb 20 18:53:43 2007
New Revision: 12923

URL: http://svn.erp5.org?rev=12923&view=rev
Log:
fixed hasFile

Modified:
    erp5/trunk/products/ERP5/Document/Document.py

Modified: erp5/trunk/products/ERP5/Document/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Document.py?rev=12923&r1=12922&r2=12923&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py (original)
+++ erp5/trunk/products/ERP5/Document/Document.py Tue Feb 20 18:53:43 2007
@@ -531,7 +531,8 @@
     """
     _marker = []
     if getattr(self,'data', _marker) is not _marker: # XXX-JPS - use propertysheet accessors
-      return getattr(self, 'data') is not None
+      d = getattr(self, 'data')
+      return d is not None and d != ''
     return False
 
   ### Version and language getters - might be moved one day to a mixin class in base




More information about the Erp5-report mailing list