[Checkins] SVN: Products.CMFCore/trunk/Products/CMFCore/interfaces/_tools.py - it's recommended to use queryUtility instead of getUtility for optional tools
Yvo Schubbe
cvs-admin at zope.org
Thu Sep 6 08:13:29 UTC 2012
Log message for revision 127731:
- it's recommended to use queryUtility instead of getUtility for optional tools
Changed:
U Products.CMFCore/trunk/Products/CMFCore/interfaces/_tools.py
-=-
Modified: Products.CMFCore/trunk/Products/CMFCore/interfaces/_tools.py
===================================================================
--- Products.CMFCore/trunk/Products/CMFCore/interfaces/_tools.py 2012-09-06 06:32:44 UTC (rev 127730)
+++ Products.CMFCore/trunk/Products/CMFCore/interfaces/_tools.py 2012-09-06 08:13:23 UTC (rev 127731)
@@ -322,7 +322,7 @@
""" The ID of the tool.
o BBB: for use in 'getToolByName'; in the future, prefer
- 'getUtility(ICachingPolicyManager)'.
+ 'queryUtility(ICachingPolicyManager)'.
o Must be set to 'caching_policy_manager'.
""",
@@ -475,7 +475,7 @@
""" The tool's ID.
o BBB: for use in 'getToolByName'; in the future, prefer
- 'getUtility(IDiscussionTool)'.
+ 'queryUtility(IDiscussionTool)'.
o Must be set to 'portal_discussion'.
""")
@@ -531,7 +531,7 @@
""" The tool's ID.
o BBB: for use in 'getToolByName'; in the future, prefer
- 'getUtility(IMemberDataTool)'.
+ 'queryUtility(IMemberDataTool)'.
o Must be set to 'portal_memberdata'
""",
@@ -917,7 +917,7 @@
""" The tool's ID.
o BBB: for use in 'getToolByName'; in the future, prefer
- 'getUtility(IMetadataTool)'.
+ 'queryUtility(IMetadataTool)'.
o Must be set to 'portal_metadata'.
""")
@@ -1083,7 +1083,7 @@
""" The ID of the tool.
o BBB: for use in 'getToolByName'; in the future, prefer
- 'getUtility(IRegistrationTool)'.
+ 'queryUtility(IRegistrationTool)'.
o Must be set to "portal_registration"
""",
@@ -1240,7 +1240,7 @@
""" The ID of the tool.
o BBB: for use in 'getToolByName'; in the future, prefer
- 'getUtility(ISkinsTool)'.
+ 'queryUtility(ISkinsTool)'.
o Must be set to 'portal_skins'.
""",
@@ -1264,7 +1264,7 @@
""" The ID of the tool.
o BBB: for use in 'getToolByName'; in the future, prefer
- 'getUtility(ISyndicationTool)'.
+ 'queryUtility(ISyndicationTool)'.
o Must be set to "portal_syndication"
""",
@@ -1612,7 +1612,7 @@
""" The ID of the tool.
o BBB: for use in 'getToolByName'; in the future, prefer
- 'getUtility(IUndoTool)'.
+ 'queryUtility(IUndoTool)'.
o Must be set to "portal_undo"
""",
@@ -1737,7 +1737,7 @@
""" The ID of the tool.
o BBB: for use in 'getToolByName'; in the future, prefer
- 'getUtility(IWorkflowTool)'.
+ 'queryUtility(IWorkflowTool)'.
o Must be set to "portal_workflow"
""",
More information about the checkins
mailing list