Commit bebff957 authored by Nicolas Delaby's avatar Nicolas Delaby

Add docstring and declare security for updateContentMd5 method

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28889 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cc2c33a3
......@@ -238,7 +238,10 @@ class ConversionCacheMixin:
"""
return str(makeSortedTuple(kw)).translate(string.maketrans('', ''), '[]()<>\'", ')
security.declareProtected(Permissions.ModifyPortalContent, 'updateContentMd5')
def updateContentMd5(self):
"""Update md5 checksum from the original file
"""
data = self.getData()
self._setContentMd5(md5.new(data).digest()) #reindex is useless
......
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