Commit 4c8c95dd authored by Hanno Schlichting's avatar Hanno Schlichting

Avoid problems in removing cache managers introduced in Zope 2.12.8.

parent 8c87524d
......@@ -11,6 +11,8 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed
++++++++++
- Avoid problems in removing cache managers introduced in Zope 2.12.8.
- LP #143531: Fix broken object so they give access to their state.
- LP #578326: Issue a warning if someone specifies a non-public permission
......
......@@ -174,7 +174,7 @@ class AcceleratedHTTPCacheManager (CacheManager, SimpleItem):
security.declarePrivate('_remove_data')
def _remove_data(self):
caches.pop(self.__cacheid)
caches.pop(self.__cacheid, None)
security.declarePrivate('_resetCacheId')
def _resetCacheId(self):
......
......@@ -382,7 +382,7 @@ class RAMCacheManager (CacheManager, SimpleItem):
security.declarePrivate('_remove_data')
def _remove_data(self):
caches.pop(self.__cacheid)
caches.pop(self.__cacheid, None)
security.declarePrivate('_resetCacheId')
def _resetCacheId(self):
......
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