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 @@ ...@@ -73,11 +73,9 @@
html_list = []\n html_list = []\n
\n \n
for crumb in context.WebSite_getBreadcrumbValue():\n for crumb in context.WebSite_getBreadcrumbValue():\n
text = None\n html_list.append(\'<a href="%s">%s</a>\' % ( crumb.WebSite_getUrl()\n
for property in (\'title\', \'short_title\', \'id\'):\n , crumb.ERP5Web_getVerboseTitle(priority=\'short_title\') \n
if text in (None, \'\') and hasattr(crumb, property):\n ))\n
text = getattr(crumb, property)\n
html_list.append(\'<a href="%s">%s</a>\' % (crumb.WebSite_getUrl(), text))\n
\n \n
return \' &gt; \'.join(html_list)\n return \' &gt; \'.join(html_list)\n
...@@ -92,10 +90,6 @@ return \' &gt; \'.join(html_list)\n ...@@ -92,10 +90,6 @@ return \' &gt; \'.join(html_list)\n
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <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> <value>
<none/> <none/>
</value> </value>
...@@ -133,11 +127,6 @@ return \' &gt; \'.join(html_list)\n ...@@ -133,11 +127,6 @@ return \' &gt; \'.join(html_list)\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>crumb</string> <string>crumb</string>
<string>None</string>
<string>text</string>
<string>property</string>
<string>hasattr</string>
<string>getattr</string>
</tuple> </tuple>
</value> </value>
</item> </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