[Zope3-checkins] SVN: Zope3/branches/jim-adapter/src/zope/app/component/site.py Added missing code to call activates and deactivated on legacy

Jim Fulton jim at zope.com
Tue Apr 18 19:56:15 EDT 2006


Log message for revision 67100:
  Added missing code to call activates and deactivated on legacy
  registration objects.
  

Changed:
  U   Zope3/branches/jim-adapter/src/zope/app/component/site.py

-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/component/site.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/component/site.py	2006-04-18 23:56:12 UTC (rev 67099)
+++ Zope3/branches/jim-adapter/src/zope/app/component/site.py	2006-04-18 23:56:14 UTC (rev 67100)
@@ -239,6 +239,12 @@
                 registration.provided,
                 registration.name,
                 )
+        try:
+            f = registration.activated
+        except AttributeError:
+            pass
+        else:
+            f()
 
     @zope.deprecation.deprecate(
         "Local registration is now much simpler.  The old baroque APIs "
@@ -259,6 +265,12 @@
                 registration.provided,
                 registration.name,
                 )
+        try:
+            f = registration.deactivated
+        except AttributeError:
+            pass
+        else:
+            f()
 
     @zope.deprecation.deprecate(
         "Local registration is now much simpler.  The old baroque APIs "



More information about the Zope3-Checkins mailing list