Commit e081f87d authored by Jean-Paul Smets's avatar Jean-Paul Smets

By default, File do not have any base data. Only certain classes should have...

By default, File do not have any base data. Only certain classes should have it. Therefore, having base data and having data is equivalent.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17510 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c01ceb87
......@@ -171,6 +171,14 @@ class File(Document, CMFFile, ConversionCacheMixin):
"""
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=''):
"""
......
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