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 @@ ...@@ -59,6 +59,8 @@
better for cache).\n better for cache).\n
"""\n """\n
permanent_url = context.WebSection_getPermanentURL(document)\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 if portal_type == \'Web Page\':\n
return permanent_url\n return permanent_url\n
else:\n else:\n
...@@ -120,7 +122,7 @@ else:\n ...@@ -120,7 +122,7 @@ else:\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>WebSection_getPermanentURLView</string> </value> <value> <string>WebSection_getPermanentURLForView</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -115,7 +115,7 @@ def getSiteMapItemTree(section, depth=0, level=None): \n ...@@ -115,7 +115,7 @@ def getSiteMapItemTree(section, depth=0, level=None): \n
if include_document or (include_document is None and section.isSiteMapDocumentParent()):\n if include_document or (include_document is None and section.isSiteMapDocumentParent()):\n
for document in section.getDocumentValueList(sort_on=\'title\'):\n for document in section.getDocumentValueList(sort_on=\'title\'):\n
result.append({\n result.append({\n
\'url\' : section.WebSection_getPermanentURLView(document),\n \'url\' : section.WebSection_getPermanentURLForView(document),\n
\'level\' : level,\n \'level\' : level,\n
\'section\' : None,\n \'section\' : None,\n
\'document\' : document,\n \'document\' : document,\n
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:cell.WebSection_getPermanentURLView(cell)</string> </value> <value> <string>python:cell.WebSection_getPermanentURLForView(cell)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</tal:block>\n </tal:block>\n
\n \n
<ul tal:repeat="document python:here.getDocumentValueList()">\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 tal:content="python: document.getProperty(\'translated_short_title\', None)\n
or document.getTranslatedTitleOrId()"/></li>\n or document.getTranslatedTitleOrId()"/></li>\n
</ul>\n </ul>\n
......
869 870
\ 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