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 ...@@ -196,7 +196,13 @@ now = []\n
for name in relative:\n for name in relative:\n
obj = obj.restrictedTraverse(name)\n obj = obj.restrictedTraverse(name)\n
now.append(name)\n now.append(name)\n
try:\n
title = obj.getCompactTranslatedTitle()\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 if not name == \'talkback\':\n
result.append( { \'id\' : name\n result.append( { \'id\' : name\n
, \'title\' : title\n , \'title\' : title\n
...@@ -266,6 +272,7 @@ return result\n ...@@ -266,6 +272,7 @@ return result\n
<string>_getiter_</string> <string>_getiter_</string>
<string>name</string> <string>name</string>
<string>title</string> <string>title</string>
<string>AttributeError</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
2010-03-09
* Display title in breadcrumb if getCompactTranslatedTitle does not exist.
2010-03-02 yusei 2010-03-02 yusei
* Remove short title. * Remove short title.
......
912 913
\ No newline at end of file \ 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