Commit 1f616acf authored by Kevin Deldycke's avatar Kevin Deldycke

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
parent e2b46031
......@@ -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 \' &gt; \'.join(html_list)\n
......@@ -92,10 +90,6 @@ return \' &gt; \'.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 \' &gt; \'.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>
......
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