Commit 5539d47f authored by Bartek Górny's avatar Bartek Górny

fixed hasFile

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12923 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6eac4c39
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment