[Erp5-report] r32892 nicolas.dumazet - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_st...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Feb 22 05:34:38 CET 2010


Author: nicolas.dumazet
Date: Mon Feb 22 05:34:38 2010
New Revision: 32892

URL: http://svn.erp5.org?rev=32892&view=rev
Log:
breadcrumbs: use getCompactTranslatedTitle

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml?rev=32892&r1=32891&r2=32892&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/breadcrumbs.xml [utf8] Mon Feb 22 05:34:38 2010
@@ -193,24 +193,16 @@
 \n
 obj = portal\n
 now = []\n
-module = True\n
 for name in relative:\n
     obj = obj.restrictedTraverse(name)\n
     now.append(name)\n
-    if module:\n
-      try:\n
-        title = obj.getTranslatedTitleOrId()\n
-      except AttributeError:\n
-        title = obj.Title()\n
-    else:\n
-      title = obj.Title()\n
+    title = obj.getCompactTranslatedTitle()\n
     if not name == \'talkback\':\n
         result.append( { \'id\'      : name\n
                        , \'title\'   : title\n
                        , \'url\'     : \'%s/%s/view%s\' % (portal_url, \'/\'.join(now), param)\n
                        }\n
                     )\n
-    module = False\n
 \n
 return result\n
 </string> </value>
@@ -271,13 +263,9 @@
                             <string>portal</string>
                             <string>obj</string>
                             <string>now</string>
-                            <string>True</string>
-                            <string>module</string>
                             <string>_getiter_</string>
                             <string>name</string>
                             <string>title</string>
-                            <string>AttributeError</string>
-                            <string>False</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=32892&r1=32891&r2=32892&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Mon Feb 22 05:34:38 2010
@@ -1,1 +1,1 @@
-901
+902




More information about the Erp5-report mailing list