Commit fafd7dc9 authored by Jérome Perrin's avatar Jérome Perrin

in breadcrumbs, append the "view" action even for the portal root.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9625 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c6851e0
......@@ -188,7 +188,9 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.CMFCore.utils import getToolByName\n
<value> <string>"Modified version for ERP5 to append the default action (/view) in the URL."\n
\n
from Products.CMFCore.utils import getToolByName\n
ptool = getToolByName(script, \'portal_properties\')\n
utool = getToolByName(script, \'portal_url\')\n
portal_url = utool()\n
......@@ -197,7 +199,7 @@ result = []\n
if include_root:\n
result.append( { \'id\' : \'root\'\n
, \'title\' : ptool.title()\n
, \'url\' : portal_url\n
, \'url\' : \'%s/view\' % portal_url\n
}\n
)\n
\n
......@@ -223,6 +225,12 @@ return result\n
<none/>
</value>
</item>
<item>
<key> <string>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
......@@ -321,4 +329,25 @@ return result\n
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
158
\ No newline at end of file
159
\ 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