Commit e433da71 authored by Fabien Morin's avatar Fabien Morin

WebSection_getPermanentURLView was an ambigous name. Change it for...

WebSection_getPermanentURLView was an ambigous name. Change it for WebSection_getPermanentURLForView which is not ambigious

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30530 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af716460
......@@ -59,6 +59,8 @@
better for cache).\n
"""\n
permanent_url = context.WebSection_getPermanentURL(document)\n
\n
# for web page, foo and foo/view are completely same\n
if portal_type == \'Web Page\':\n
return permanent_url\n
else:\n
......@@ -120,7 +122,7 @@ else:\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_getPermanentURLView</string> </value>
<value> <string>WebSection_getPermanentURLForView</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
......@@ -115,7 +115,7 @@ def getSiteMapItemTree(section, depth=0, level=None): \n
if include_document or (include_document is None and section.isSiteMapDocumentParent()):\n
for document in section.getDocumentValueList(sort_on=\'title\'):\n
result.append({\n
\'url\' : section.WebSection_getPermanentURLView(document),\n
\'url\' : section.WebSection_getPermanentURLForView(document),\n
\'level\' : level,\n
\'section\' : None,\n
\'document\' : document,\n
......
......@@ -273,7 +273,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:cell.WebSection_getPermanentURLView(cell)</string> </value>
<value> <string>python:cell.WebSection_getPermanentURLForView(cell)</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -46,7 +46,7 @@
</tal:block>\n
\n
<ul tal:repeat="document python:here.getDocumentValueList()">\n
<li><a tal:attributes="href python:here.WebSection_getPermanentURLView(document)"\n
<li><a tal:attributes="href python:here.WebSection_getPermanentURLForView(document)"\n
tal:content="python: document.getProperty(\'translated_short_title\', None)\n
or document.getTranslatedTitleOrId()"/></li>\n
</ul>\n
......
869
\ No newline at end of file
870
\ 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