Commit 35a11ecf authored by Yusei Tahara's avatar Yusei Tahara

2010-03-09

* Display title in breadcrumb if getCompactTranslatedTitle does not exist.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33521 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fd9824d8
......@@ -196,7 +196,13 @@ now = []\n
for name in relative:\n
obj = obj.restrictedTraverse(name)\n
now.append(name)\n
title = obj.getCompactTranslatedTitle()\n
try:\n
title = obj.getCompactTranslatedTitle()\n
except AttributeError:\n
# Some objects do not have getCompactTranslatedTitle.\n
# UI related codes must run at any cases even if context is non-erp5 objects.\n
# Otherwise some error messages can be overridden by getCompactTranslatedTitle attribute error.\n
title = obj.Title()\n
if not name == \'talkback\':\n
result.append( { \'id\' : name\n
, \'title\' : title\n
......@@ -266,6 +272,7 @@ return result\n
<string>_getiter_</string>
<string>name</string>
<string>title</string>
<string>AttributeError</string>
</tuple>
</value>
</item>
......
2010-03-09
* Display title in breadcrumb if getCompactTranslatedTitle does not exist.
2010-03-02 yusei
* Remove short title.
......
912
\ No newline at end of file
913
\ No newline at end of file
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