[Erp5-report] r14627 - /erp5/trunk/products/ERP5/Document/Document.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat May 26 15:53:06 CEST 2007
Author: bartek
Date: Sat May 26 15:53:05 2007
New Revision: 14627
URL: http://svn.erp5.org?rev=14627&view=rev
Log:
better way to check if there are data (more generic) - correction of previous commit
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=14627&r1=14626&r2=14627&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py (original)
+++ erp5/trunk/products/ERP5/Document/Document.py Sat May 26 15:53:05 2007
@@ -1071,7 +1071,7 @@
A private method which converts to HTML. This method
is the one to override in subclasses.
"""
- if not self.getData():
+ if not self.hasBaseData():
return ''
if self.hasConversion(format='base-html'):
mime, data = self.getConversion(format='base-html')
@@ -1086,7 +1086,7 @@
(without html and body tags, etc.) which can be used to inline
a preview of the document.
"""
- if not self.getData():
+ if not self.hasBaseData():
return ''
if self.hasConversion(format='stripped-html'): # XXX this is redundant since we never set it
mime, data = self.getConversion(format='stripped-html')
More information about the Erp5-report
mailing list