From 684215ff775a23e733129e0ee1986c48c2844b24 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl>
Date: Sat, 26 May 2007 13:53:05 +0000
Subject: [PATCH] better way to check if there are data (more generic) -
 correction of previous commit

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14627 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Document.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/Document/Document.py b/product/ERP5/Document/Document.py
index 27321e2695..746f0c363e 100644
--- a/product/ERP5/Document/Document.py
+++ b/product/ERP5/Document/Document.py
@@ -1071,7 +1071,7 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
       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 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
       (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')
-- 
2.30.9