[Erp5-report] r35343 nicolas - /erp5/trunk/products/ERP5/mixin/cached_convertable.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 14 14:52:29 CEST 2010
Author: nicolas
Date: Fri May 14 14:52:28 2010
New Revision: 35343
URL: http://svn.erp5.org?rev=35343&view=rev
Log:
Improve compliancy with ICachedConvertable
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=35343&r1=35342&r2=35343&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/mixin/cached_convertable.py [utf8] (original)
+++ erp5/trunk/products/ERP5/mixin/cached_convertable.py [utf8] Fri May 14 14:52:28 2010
@@ -91,6 +91,13 @@
#ram_cache_root is not up to date for current node
cache_tool.updateCache()
return cache_tool.getRamCacheRoot().get(cache_factory_name)
+
+ security.declareProtected(Permissions.AccessContentsInformation,
+ 'generateCacheId')
+ def generateCacheId(self, **kw):
+ """
+ """
+ return self._getCacheKey(self, **kw)
def _getCacheKey(self, **kw):
"""
More information about the Erp5-report
mailing list