[Erp5-report] r38636 nicolas.dumazet - /erp5/trunk/products/ERP5Type/Cache.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Sep 25 15:02:55 CEST 2010


Author: nicolas.dumazet
Date: Sat Sep 25 15:02:54 2010
New Revision: 38636

URL: http://svn.erp5.org?rev=38636&view=rev
Log:
rename "Cookie" to ZODBCookie to avoid confusions: those are not HTTP cookies

Modified:
    erp5/trunk/products/ERP5Type/Cache.py

Modified: erp5/trunk/products/ERP5Type/Cache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Cache.py?rev=38636&r1=38635&r2=38636&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Cache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Cache.py [utf8] Sat Sep 25 15:02:54 2010
@@ -60,7 +60,7 @@ def initializePortalCachingProperties(se
     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:




More information about the Erp5-report mailing list