[Checkins] SVN: Zope/trunk/src/OFS/Traversable.py Reintroduce an aq_inner into the getPhysicalPath code to fix test failures in CMF's discussion items

Hanno Schlichting hannosch at hannosch.eu
Thu Aug 11 15:08:31 EDT 2011


Log message for revision 122543:
  Reintroduce an aq_inner into the getPhysicalPath code to fix test failures in CMF's discussion items
  

Changed:
  U   Zope/trunk/src/OFS/Traversable.py

-=-
Modified: Zope/trunk/src/OFS/Traversable.py
===================================================================
--- Zope/trunk/src/OFS/Traversable.py	2011-08-11 18:52:13 UTC (rev 122542)
+++ Zope/trunk/src/OFS/Traversable.py	2011-08-11 19:08:31 UTC (rev 122543)
@@ -137,10 +137,7 @@
                     pid = p.getId()
 
                 path = (pid, ) + path
-                try:
-                    p = p.__parent__
-                except AttributeError:
-                    p = None
+                p = aq_parent(aq_inner(p))
             else:
                 if IApplication.providedBy(p):
                     path = ('', ) + path



More information about the checkins mailing list