[Checkins] SVN: CMF/branches/2.1/CMFCore/utils.py Undeprecate getToolByName. The deprecation was only for aesthetic reasons. getToolByName

Wichert Akkerman wichert at wiggy.net
Wed Apr 25 08:02:36 EDT 2007


Log message for revision 74750:
  Undeprecate getToolByName. The deprecation was only for aesthetic reasons. getToolByName
  was (also) intended to make it easier to switch the underlying logic to use Zope 3
  technology, so lets use it that way instead of requiring everyone to use Zope 3
  technology to get Zope 2 style tools.
  

Changed:
  U   CMF/branches/2.1/CMFCore/utils.py

-=-
Modified: CMF/branches/2.1/CMFCore/utils.py
===================================================================
--- CMF/branches/2.1/CMFCore/utils.py	2007-04-25 11:51:35 UTC (rev 74749)
+++ CMF/branches/2.1/CMFCore/utils.py	2007-04-25 12:02:36 UTC (rev 74750)
@@ -100,10 +100,6 @@
     tool_interface = _tool_interface_registry.get(name)
 
     if tool_interface is not None:
-        warn('getToolByName is deprecated and will be removed in '
-             'CMF 2.3, please use "getUtility(%s)"' % (
-               tool_interface.__name__), DeprecationWarning, stacklevel=2) 
-
         try:
             return getUtility(tool_interface)
         except ComponentLookupError:



More information about the Checkins mailing list