Commit de28107d authored by Nicolas Delaby's avatar Nicolas Delaby

* Do not try to hash None values

* force conversion into string for Pdata objects (File, Image, OOoDocument, ...).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34914 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e5f844c0
...@@ -178,4 +178,6 @@ class CachedConvertableMixin: ...@@ -178,4 +178,6 @@ class CachedConvertableMixin:
it general or related to caching only ? it general or related to caching only ?
""" """
data = self.getData() data = self.getData()
self._setContentMd5(md5.new(data).hexdigest()) # Reindex is useless if data is not None:
data = str(data) # Usefull for Pdata
self._setContentMd5(md5.new(data).hexdigest()) # 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