Commit b29988b7 authored by Fabien Morin's avatar Fabien Morin

escape url because it makes not xhtml valid web pages

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21396 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 931f858c
......@@ -67,13 +67,15 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
from Products.PythonScripts.standard import html_quote\n
\n
if brain.object_state == \'Modified\':\n
target_object = brain.getObject()\n
parent_absolute_path = target_object.aq_parent.absolute_url()\n
if hasattr(brain, \'bt1\'):\n
return parent_absolute_path+\'/BusinessTemplate_viewObjectsDiff?object_id=\'+brain.object_id+\'&object_class=\'+brain.object_class+\'&bt1=\'+brain.bt1+\'&bt2=\'+brain.bt2\n
return html_quote(parent_absolute_path+\'/BusinessTemplate_viewObjectsDiff?object_id=\'+brain.object_id+\'&object_class=\'+brain.object_class+\'&bt1=\'+brain.bt1+\'&bt2=\'+brain.bt2)\n
else:\n
return parent_absolute_path+\'/BusinessTemplate_viewObjectsDiff?object_id=\'+brain.object_id+\'&object_class=\'+brain.object_class\n
return html_quote(parent_absolute_path+\'/BusinessTemplate_viewObjectsDiff?object_id=\'+brain.object_id+\'&object_class=\'+brain.object_class)\n
else:\n
return None\n
......@@ -129,6 +131,8 @@ else:\n
<string>brain</string>
<string>selection</string>
<string>selection_name</string>
<string>Products.PythonScripts.standard</string>
<string>html_quote</string>
<string>_getattr_</string>
<string>target_object</string>
<string>parent_absolute_path</string>
......
833
\ No newline at end of file
834
\ 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