Commit 6eac4c39 authored by Bartek Górny's avatar Bartek Górny

hasFile is handled by parent class Document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12922 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aedd6cba
......@@ -148,17 +148,6 @@ class File(Document, CMFFile, ConversionCacheMixin):
getcontentlength = get_size
# File management virtual accessor
security.declareProtected(Permissions.View, 'hasFile')
def hasFile(self):
"""
Checks whether we have an initial file
"""
_marker = []
if getattr(self,'data', _marker) is not _marker: # XXX-JPS - use propertysheet accessors
return getattr(self,'data') is not None
return False
def _setFile(self, data, precondition=None):
self.clearConversionCache()
CMFFile._edit(self, precondition=precondition, file=data)
......
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