From 5539d47ff8e8172a4b344d583fc54161bdeb02a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl> Date: Tue, 20 Feb 2007 17:53:43 +0000 Subject: [PATCH] fixed hasFile git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12923 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Document.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Document/Document.py b/product/ERP5/Document/Document.py index d9e6bf5b3e..656ffd7f37 100644 --- a/product/ERP5/Document/Document.py +++ b/product/ERP5/Document/Document.py @@ -531,7 +531,8 @@ class Document(XMLObject): """ _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 -- 2.30.9