[Zope3-checkins] CVS: Zope3/src/zope/app/services -
registration.py:1.16.6.1
Jim Fulton
cvs-admin at zope.org
Tue Nov 11 10:53:03 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv13421/src/zope/app/services
Modified Files:
Tag: adaptergeddon-branch
registration.py
Log Message:
Did some refactoring in preparation for local surrogate registries.
- Changed adapter registrations to not use weakrefs.
- Factored out code for computing implied info based on adapter
registrations.
- Changed the strategy for computing the "implied" data structure to
merge surrogate-local implied data structures, reducing the amound
of computation done.
=== Zope3/src/zope/app/services/registration.py 1.16 => 1.16.6.1 ===
--- Zope3/src/zope/app/services/registration.py:1.16 Wed Sep 24 16:43:13 2003
+++ Zope3/src/zope/app/services/registration.py Tue Nov 11 10:52:32 2003
@@ -282,6 +282,15 @@
return result
+class NotifyingRegistrationStack(RegistrationStack):
+
+ def activate(self, registration):
+ RegistrationStack.activate(self, registration)
+ self.__parent__.notifyActivated(self, registration)
+
+ def deactivate(self, registration):
+ RegistrationStack.deactivate(self, registration)
+ self.__parent__.notifyDeactivated(self, registration)
class SimpleRegistration(Persistent, Contained):
"""Registration objects that just contain registration data
More information about the Zope3-Checkins
mailing list