[Zope3-checkins] CVS: Zope3/src/zope/app/cache - ram.py:1.9
Jim Fulton
jim at zope.com
Sun Sep 21 13:31:48 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/cache
In directory cvs.zope.org:/tmp/cvs-serv13000/src/zope/app/cache
Modified Files:
ram.py
Log Message:
Object events no longer have location attributes. Ratherm get the
path from the object attribute.
=== Zope3/src/zope/app/cache/ram.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/cache/ram.py:1.8 Tue Aug 19 13:34:08 2003
+++ Zope3/src/zope/app/cache/ram.py Sun Sep 21 13:31:17 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