[Zope3-checkins] SVN: Zope3/trunk/src/zope/component/__init__.py Warnings about getUtility() corrected

Dmitry Vasiliev dima at hlabs.spb.ru
Wed Jun 2 04:16:30 EDT 2004


Log message for revision 25170:
Warnings about getUtility() corrected



-=-
Modified: Zope3/trunk/src/zope/component/__init__.py
===================================================================
--- Zope3/trunk/src/zope/component/__init__.py	2004-06-02 03:47:07 UTC (rev 25169)
+++ Zope3/trunk/src/zope/component/__init__.py	2004-06-02 08:16:29 UTC (rev 25170)
@@ -233,13 +233,13 @@
 
 def getFactory(context, name):
     warnings.warn(
-        "Use getUtility(context, IFactory, name) instead of getFactory(...)",
+        "Use getUtility(IFactory, name, context) instead of getFactory(...)",
         DeprecationWarning, 2)
     return getUtility(IFactory, name, context=context)
 
 def queryFactory(context, name, default=None):
     warnings.warn(
-        "Use getUtility(context, IFactory, name) instead of getFactory(...)",
+        "Use getUtility(IFactory, name, context) instead of getFactory(...)",
         DeprecationWarning, 2)
     return queryUtility(IFactory, name=name, context=context)
 




More information about the Zope3-Checkins mailing list