[Zope3-checkins] CVS: Zope3/src/zope/app/adapter - adapter.py:1.7
Jim Fulton
jim at zope.com
Mon Apr 12 13:58:34 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/adapter
In directory cvs.zope.org:/tmp/cvs-serv25184/src/zope/app/adapter
Modified Files:
adapter.py
Log Message:
Changed the strategy for flushing the adapter cache.
Now just reinitialize the adapter registry, as we do in __setstate__,
rather than trying to dirty individual surrogates.
=== Zope3/src/zope/app/adapter/adapter.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/adapter/adapter.py:1.6 Thu Apr 8 17:31:39 2004
+++ Zope3/src/zope/app/adapter/adapter.py Mon Apr 12 13:58:33 2004
@@ -168,8 +168,11 @@
if adapters != self.adapters:
self.adapters = adapters
- for surrogate in self._surrogates.values():
- surrogate.dirty()
+
+ # Throw away all of our surrogates, rather than dirtrying
+ # them individually
+ AdapterRegistry.__init__(self)
+
for sub in self.subs:
sub.adaptersChanged()
More information about the Zope3-Checkins
mailing list