[Erp5-report] r19796 - /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateIte...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Mar 11 15:14:54 CET 2008
Author: jp
Date: Tue Mar 11 15:14:54 2008
New Revision: 19796
URL: http://svn.erp5.org?rev=19796&view=rev
Log:
Make sure we can support flexible traversal (as in web sites). Use traverse rather than dict access.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml?rev=19796&r1=19795&r2=19796&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml Tue Mar 11 15:14:54 2008
@@ -207,7 +207,7 @@
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 @@
<string>module</string>
<string>_getiter_</string>
<string>name</string>
- <string>_getitem_</string>
<string>title</string>
<string>AttributeError</string>
<string>False</string>
More information about the Erp5-report
mailing list