Commit a651c35c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

2010-09-22 kazuhiko

* use Web Section's url in WebSection_getPermanentURL script, if it is called against a document.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38546 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 18ecea00
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -126,7 +123,10 @@ if document.getValidationState() not in validation_state:\n
if view and portal_type not in html_portal_type_list:\n
return \'%s/%s/view\' % (context.absolute_url(), reference)\n
\n
return "%s/%s" % (context.absolute_url(), reference)\n
web_section = context.getWebSectionValue()\n
if web_section is None:\n
web_section = context\n
return "%s/%s" % (web_section.absolute_url(), reference)\n
</string> </value>
</item>
<item>
......@@ -173,6 +173,8 @@ return "%s/%s" % (context.absolute_url(), reference)\n
<string>portal</string>
<string>valid_portal_type_list</string>
<string>validation_state</string>
<string>web_section</string>
<string>None</string>
</tuple>
</value>
</item>
......
2010-09-22 kazuhiko
* use Web Section's url in WebSection_getPermanentURL script, if it is called against a document.
2010-03-05 fabien
* fix caches id bug. Now caches should works much better.
......
976
\ No newline at end of file
977
\ 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