Commit 6bd80ef3 authored by Nicolas Delaby's avatar Nicolas Delaby

fix equality test (by Aïssam)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15886 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 884c5b1e
......@@ -672,7 +672,7 @@ class ContributionTool(BaseTool):
# md5 stuff to compare contents
new_content_md5 = md5.md5(data).hexdigest()
content_md5 = content.getContentMd5()
if content_md5 is new_content_md5:
if content_md5 == new_content_md5:
return
content._edit(file=file)# Please make sure that if content is the same
# we do not update it
......
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