[Erp5-report] r21396 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jun 6 17:29:10 CEST 2008
Author: fabien
Date: Fri Jun 6 17:29:05 2008
New Revision: 21396
URL: http://svn.erp5.org?rev=21396&view=rev
Log:
escape url because it makes not xhtml valid web pages
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getDiffUrl.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getDiffUrl.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getDiffUrl.xml?rev=21396&r1=21395&r2=21396&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getDiffUrl.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getDiffUrl.xml Fri Jun 6 17:29:05 2008
@@ -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 @@
<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>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=21396&r1=21395&r2=21396&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Fri Jun 6 17:29:05 2008
@@ -1,1 +1,1 @@
-833
+834
More information about the Erp5-report
mailing list