[Checkins] SVN: Zope3/branches/jim-adapter/src/zope/app/component/site.py Added missing deprecation warning and removed comment.

Jim Fulton jim at zope.com
Sun Apr 23 15:03:10 EDT 2006


Log message for revision 67557:
  Added missing deprecation warning and removed comment.
  

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-23 16:43:39 UTC (rev 67556)
+++ Zope3/branches/jim-adapter/src/zope/app/component/site.py	2006-04-23 19:03:10 UTC (rev 67557)
@@ -338,6 +338,11 @@
                 ])
         return False
 
+    @zope.deprecation.deprecate(
+        "Local registration is now much simpler.  The old baroque APIs "
+        "will go away in Zope 3.5.  See the new component-registration APIs "
+        "defined in zope.component, especially IComponentRegistry.",
+        )
     def registrations(self):
         """See zope.component.interfaces.IRegistry"""
         for r in self.registeredUtilities():
@@ -349,15 +354,6 @@
         for r in self.registeredSubscriptionAdapters():
             yield r
 
-
-## zope.deferredimport.deprecatedFrom(
-##     "Local registration is now much simpler.  The old baroque APIs "
-##     "will go away in Zope 3.5.  See the new component-registration APIs "
-##     "defined in zope.component, especially IComponentRegistry.",
-##     'zope.app.component.back35',
-##     'AdapterRegistration',
-##     )
-
 zope.deferredimport.deprecatedFrom(
     "Local registration is now much simpler.  The old baroque APIs "
     "will go away in Zope 3.5.  See the new component-registration APIs "



More information about the Checkins mailing list