Commit d5342a28 authored by Kevin Deldycke's avatar Kevin Deldycke

Return the URL not the title

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7694 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ef95d608
......@@ -14,7 +14,9 @@
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">bfINCg==</string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
......@@ -68,7 +70,7 @@
<key> <string>_body</string> </key>
<value> <string>section = context.WebSite_getSectionValue()\n
if section is not None:\n
return section.WebSite_getUrl()\n
return section.getTitle()\n
return None\n
</string> </value>
</item>
......@@ -80,7 +82,7 @@ return None\n
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/erp5/portal_skins/erp5_web/WebSite_getSection</string> </value>
<value> <string>Script (Python):/nexedi/portal_skins/erp5_web/WebSite_getSection</string> </value>
</item>
<item>
<key> <string>_owner</string> </key>
......
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