[Zope3-checkins] SVN: Zope3/branches/jim-adapter/src/zope/app/testing/ztapi.py get rid of some BBB code

Philipp von Weitershausen philikon at philikon.de
Tue Apr 4 14:30:27 EDT 2006


Log message for revision 66427:
  get rid of some BBB code
  

Changed:
  U   Zope3/branches/jim-adapter/src/zope/app/testing/ztapi.py

-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/testing/ztapi.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/testing/ztapi.py	2006-04-04 18:24:49 UTC (rev 66426)
+++ Zope3/branches/jim-adapter/src/zope/app/testing/ztapi.py	2006-04-04 18:30:26 UTC (rev 66427)
@@ -93,22 +93,3 @@
 def provideNamespaceHandler(name, handler):
     provideAdapter(None, ITraversable, handler, name=name)
     provideView(None, None, ITraversable, name, handler)
-
-
-# BBB: Deprecated. Gone in 3.3.
-from zope.deprecation import deprecated
-
-def provideService(name, service, interface=None):
-    services = zapi.getGlobalServices()
-    if interface is not None:
-        services.defineService(name, interface)
-    services.provideService(name, service)
-    
-deprecated('provideService',
-           'The concept of services has been removed. Use utilities instead. '
-           'The reference will be gone in 3.3.')
-
-deprecated('handle',
-           'The handle(required, handler) function as a shorter spelling of '
-           'subscribe(required, None, handler) has been deprecated to avoid '
-           'nomenclature confusion with zope.component.handle.')



More information about the Zope3-Checkins mailing list