[Erp5-report] r8580 - /erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jul 19 14:14:51 CEST 2006
Author: kevin
Date: Wed Jul 19 14:14:48 2006
New Revision: 8580
URL: http://svn.erp5.org?rev=8580&view=rev
Log:
Use generic ERP5Web_getVerboseTitle script to render the title
Modified:
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getBreadcrumb.xml
Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getBreadcrumb.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getBreadcrumb.xml?rev=8580&r1=8579&r2=8580&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getBreadcrumb.xml (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getBreadcrumb.xml Wed Jul 19 14:14:48 2006
@@ -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 @@
</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 @@
<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>
More information about the Erp5-report
mailing list