[Zope3-checkins] CVS: Zope3/src/zope/app/cache - ram.py:1.8.6.1
Jim Fulton
jim at zope.com
Mon Sep 15 14:12:59 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/cache
In directory cvs.zope.org:/tmp/cvs-serv15511/src/zope/app/cache
Modified Files:
Tag: parentgeddon-branch
ram.py
Log Message:
Got lots of tests to pass.
Added a setitem helper function to be used to help satisfy container
contracts.
=== Zope3/src/zope/app/cache/ram.py 1.8 => 1.8.6.1 ===
--- Zope3/src/zope/app/cache/ram.py:1.8 Tue Aug 19 13:34:08 2003
+++ Zope3/src/zope/app/cache/ram.py Mon Sep 15 14:12:28 2003
@@ -19,7 +19,7 @@
from thread import allocate_lock
from pickle import dumps
from persistence import Persistent
-
+from zope.app import zapi
from zope.app.interfaces.cache.ram import IRAMCache
from zope.app.interfaces.cache import ICache
from zope.app.interfaces.event import IObjectModifiedEvent
@@ -152,7 +152,7 @@
"""
if IObjectModifiedEvent.isImplementedBy(event):
- self._getStorage().invalidate(event.location)
+ self._getStorage().invalidate(zapi.getPath(event.object))
class Storage:
More information about the Zope3-Checkins
mailing list