Commit d184e140 authored by Bartek Górny's avatar Bartek Górny

webdav fix, by Ivan (part I)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10652 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5862e3f5
......@@ -174,6 +174,15 @@ class DMSFile(XMLObject,File):
searchable_text = ' '.join(map(lambda x: self.getProperty(x) or ' ',self.searchable_attrs))
return searchable_text
def get_size(self):
'''
has to be overwritted here, otherwise WebDAV fails
'''
try:
return len(self.data)
except AttributeError:
return 0
security.declareProtected(Permissions.View,'hasFile')
def hasFile(self):
"""
......
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