From 1f616acf2cfb6a07a708cab91b41c3f88ef342ff Mon Sep 17 00:00:00 2001 From: Kevin Deldycke <kevin@nexedi.com> Date: Wed, 19 Jul 2006 12:14:48 +0000 Subject: [PATCH] Use generic ERP5Web_getVerboseTitle script to render the title git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8580 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_web/WebSite_getBreadcrumb.xml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getBreadcrumb.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getBreadcrumb.xml index 93424fe19a..1ec0a8dd34 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getBreadcrumb.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getBreadcrumb.xml @@ -73,11 +73,9 @@ html_list = []\n \n for crumb in context.WebSite_getBreadcrumbValue():\n - text = None\n - for property in (\'title\', \'short_title\', \'id\'):\n - if text in (None, \'\') and hasattr(crumb, property):\n - text = getattr(crumb, property)\n - html_list.append(\'<a href="%s">%s</a>\' % (crumb.WebSite_getUrl(), text))\n + html_list.append(\'<a href="%s">%s</a>\' % ( crumb.WebSite_getUrl()\n + , crumb.ERP5Web_getVerboseTitle(priority=\'short_title\') \n + ))\n \n return \' > \'.join(html_list)\n @@ -92,10 +90,6 @@ return \' > \'.join(html_list)\n </item> <item> <key> <string>_filepath</string> </key> - <value> <string>Script (Python):/nexedi/portal_skins/erp5_web/WebSite_getBreadcrumb</string> </value> - </item> - <item> - <key> <string>_owner</string> </key> <value> <none/> </value> @@ -133,11 +127,6 @@ return \' > \'.join(html_list)\n <string>_getattr_</string> <string>context</string> <string>crumb</string> - <string>None</string> - <string>text</string> - <string>property</string> - <string>hasattr</string> - <string>getattr</string> </tuple> </value> </item> -- 2.30.9