[Erp5-report] r34914 nicolas - /erp5/trunk/products/ERP5/mixin/cached_convertable.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat May 1 09:37:58 CEST 2010
Author: nicolas
Date: Sat May 1 09:37:57 2010
New Revision: 34914
URL: http://svn.erp5.org?rev=34914&view=rev
Log:
* Do not try to hash None values
* force conversion into string for Pdata objects (File, Image, OOoDocument, ...).
Modified:
erp5/trunk/products/ERP5/mixin/cached_convertable.py
Modified: erp5/trunk/products/ERP5/mixin/cached_convertable.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/mixin/cached_convertable.py?rev=34914&r1=34913&r2=34914&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/mixin/cached_convertable.py [utf8] (original)
+++ erp5/trunk/products/ERP5/mixin/cached_convertable.py [utf8] Sat May 1 09:37:57 2010
@@ -178,4 +178,6 @@
it general or related to caching only ?
"""
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
More information about the Erp5-report
mailing list