Commit 80ce5659 authored by Nicolas Dumazet's avatar Nicolas Dumazet

rename "Cookie" to ZODBCookie to avoid confusions: those are not HTTP cookies


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38636 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2e3a7aed
......@@ -60,7 +60,7 @@ def initializePortalCachingProperties(self):
is_cache_ready = 1
class Cookie(Persistent):
class ZODBCookie(Persistent):
value = 0
......@@ -90,8 +90,8 @@ class CacheCookieMixin:
try:
return self.__dict__[cache_name].value
except KeyError:
self.__dict__[cache_name] = Cookie()
return Cookie.value
self.__dict__[cache_name] = ZODBCookie()
return ZODBCookie.value
security.declareProtected(Permissions.ModifyPortalContent, 'newCacheCookie')
def newCacheCookie(self, cache_name):
......@@ -100,7 +100,7 @@ class CacheCookieMixin:
try:
self.__dict__[cache_name].value += 1
except KeyError:
self.__dict__[cache_name] = Cookie()
self.__dict__[cache_name] = ZODBCookie()
class CacheFactory:
......
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