[Checkins] SVN: CMF/branches/2.1/CMFCore/utils.py Do not wrap if the utility is already wrapped, not if the context is already wrapped

Wichert Akkerman wichert at wiggy.net
Mon Apr 30 06:44:17 EDT 2007


Log message for revision 74920:
  Do not wrap if the utility is already wrapped, not if the context is already 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-30 10:27:53 UTC (rev 74919)
+++ CMF/branches/2.1/CMFCore/utils.py	2007-04-30 10:44:16 UTC (rev 74920)
@@ -107,7 +107,7 @@
             # utilities. If the result is something which is acquisition-unaware
             # but unwrapped we wrap it on the context.
             if IAcquirer.providedBy(obj) and \
-                    aq_parent(obj) is None and \
+                    aq_parent(utility) is None and \
                     IAcquirer.providedBy(utility):
                 utilty = utility.__of__(obj)
             return utility



More information about the Checkins mailing list