Commit 196f74de authored by Jean-Paul Smets's avatar Jean-Paul Smets

Make sure we can support flexible traversal (as in web sites). Use traverse...

Make sure we can support flexible traversal (as in web sites). Use traverse rather than dict access.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19796 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dfd9182e
......@@ -207,7 +207,7 @@ obj = portal\n
now = []\n
module = True\n
for name in relative:\n
obj = obj[name]\n
obj = obj.restrictedTraverse(name)\n
now.append(name)\n
if module:\n
try:\n
......@@ -297,7 +297,6 @@ return result\n
<string>module</string>
<string>_getiter_</string>
<string>name</string>
<string>_getitem_</string>
<string>title</string>
<string>AttributeError</string>
<string>False</string>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment