Commit 2856d229 authored by Nicolas Delaby's avatar Nicolas Delaby

There is no need to override hasBaseData for a File

because it does not implement IBaseConvertable interface


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35229 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 237ca283
......@@ -133,14 +133,6 @@ class File(Document, CMFFile):
"""
return self.hasData()
security.declareProtected(Permissions.AccessContentsInformation, 'hasBaseData')
def hasBaseData(self):
"""
By default, a File instance does not require conversion
to a base format. Therefore, hasBaseData must be overriden.
"""
return self.hasData()
security.declareProtected(Permissions.ModifyPortalContent, 'guessMimeType')
def guessMimeType(self, fname=None):
"""
......
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