[Checkins] SVN: CMF/branches/2.1/CMFCore/utils.py Tools should
always be acquisition wrapped
Wichert Akkerman
wichert at wiggy.net
Sun Apr 29 05:26:15 EDT 2007
Log message for revision 74888:
Tools should always be acquisition wrapped
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-29 00:02:25 UTC (rev 74887)
+++ CMF/branches/2.1/CMFCore/utils.py 2007-04-29 09:26:13 UTC (rev 74888)
@@ -101,7 +101,8 @@
if tool_interface is not None:
try:
- return getUtility(tool_interface)
+ utility = getUtility(tool_interface)
+ return utility_tool.__of__(obj)
except ComponentLookupError:
# behave in backwards-compatible way
# fall through to old implementation
More information about the Checkins
mailing list