From 196f74de4f532d1694f99f302a9fc185759e0954 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Tue, 11 Mar 2008 14:14:54 +0000 Subject: [PATCH] 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 --- .../portal_skins/erp5_xhtml_style/breadcrumbs.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml index 1eeccc3dd2..19a92a13f7 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml @@ -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> -- 2.30.9