Commit 22b439fd authored by Nicolas Delaby's avatar Nicolas Delaby

Improve compliancy with ICachedConvertable

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35343 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0fec5da9
...@@ -92,6 +92,13 @@ class CachedConvertableMixin: ...@@ -92,6 +92,13 @@ class CachedConvertableMixin:
cache_tool.updateCache() cache_tool.updateCache()
return cache_tool.getRamCacheRoot().get(cache_factory_name) 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): def _getCacheKey(self, **kw):
""" """
Returns the key to use for the cache entries. For now, Returns the key to use for the cache entries. For now,
......
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