[CMF-checkins] CVS: CMF/CMFCore - Skinnable.py:

Chris McDonough chrism@zope.com
Fri, 20 Jun 2003 15:38:28 -0400

Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv25349

Modified Files:
      Tag: CMF-1_3-branch
Log Message:
Backport of skinnable bugfix to 1.3 branch.  Original HEAD checkin message:

Fix __of__ method so that it does not remove previous acquisition wrappers. This behavior causes getPhysicalPath to return the wrong value when you acquire objects above the CMF site during traversal. The effect of this is invalid uid and path index entries in the portal_catalog when objects are indexed during such a traversal.

=== CMF/CMFCore/Skinnable.py => ===
--- CMF/CMFCore/Skinnable.py:	Thu Aug  1 15:07:55 2002
+++ CMF/CMFCore/Skinnable.py	Fri Jun 20 15:38:28 2003
@@ -113,7 +113,7 @@
         Sneakily sets up the portal skin then returns the wrapper
         that Acquisition.Implicit.__of__() would return.
-        w_self = ImplicitAcquisitionWrapper(aq_base(self), parent)
+        w_self = ImplicitAcquisitionWrapper(self, parent)
         return w_self