[Erp5-report] r14363 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 4 14:20:06 CEST 2007
Author: jerome
Date: Fri May 4 14:20:06 2007
New Revision: 14363
URL: http://svn.erp5.org?rev=14363&view=rev
Log:
Use url_quote from Zope API
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installRepositoryBusinessTemplateList.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installRepositoryBusinessTemplateList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installRepositoryBusinessTemplateList.xml?rev=14363&r1=14362&r2=14363&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installRepositoryBusinessTemplateList.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installRepositoryBusinessTemplateList.xml Fri May 4 14:20:06 2007
@@ -71,6 +71,7 @@
<value> <string encoding="cdata"><![CDATA[
from ZTUtils import make_query\n
+from Products.PythonScripts.standard import url_quote\n
\n
REQUEST = container.REQUEST\n
RESPONSE = REQUEST.RESPONSE\n
@@ -79,7 +80,10 @@
uids = context.portal_selections.getSelectionCheckedUidsFor(selection_name)\n
\n
if len(uids) == 0:\n
- return context.REQUEST.RESPONSE.redirect(\'%s/TemplateTool_viewInstallRepositoryBusinessTemplateListDialog?portal_status_message=%s\'%(context.absolute_url(), context.urlQuote(\'No Business Template specified.\')))\n
+ return context.REQUEST.RESPONSE.redirect(\n
+ \'%s/TemplateTool_viewInstallRepositoryBusinessTemplateListDialog?\'\n
+ \'portal_status_message=%s\' % ( context.absolute_url(),\n
+ url_quote(\'No Business Template Selected.\')))\n
\n
# Initilization\n
id_list = []\n
@@ -116,7 +120,7 @@
if portal_status_message != \'\' :\n
#context.portal_selections.setSelectionCheckedUidsFor(REQUEST.get(\'selection_name\'), current_uid_list)\n
context.portal_selections.setSelectionCheckedUidsFor(\'template_tool_install_selection\', current_uid_list)\n
- return context.REQUEST.RESPONSE.redirect(\'%s/TemplateTool_viewInstallRepositoryBusinessTemplateListDialog?portal_status_message=%s\'%(context.absolute_url(), context.urlQuote(portal_status_message)))\n
+ return context.REQUEST.RESPONSE.redirect(\'%s/TemplateTool_viewInstallRepositoryBusinessTemplateListDialog?portal_status_message=%s\'%(context.absolute_url(), url_quote(portal_status_message)))\n
\n
# order uids according to dependencies before processing\n
tuple_list = []\n
@@ -124,7 +128,6 @@
tuple_list.append(context.decodeRepositoryBusinessTemplateUid(uid))\n
tuple_list = context.sortBusinessTemplateList(tuple_list)\n
\n
-context.log(\'uids = %s\' %(uids,), \'tuple list = %s\' %(tuple_list,))\n
\n
bt_list = []\n
for repository, id in tuple_list:\n
@@ -186,6 +189,8 @@
<string>kw</string>
<string>ZTUtils</string>
<string>make_query</string>
+ <string>Products.PythonScripts.standard</string>
+ <string>url_quote</string>
<string>_getattr_</string>
<string>container</string>
<string>REQUEST</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=14363&r1=14362&r2=14363&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Fri May 4 14:20:06 2007
@@ -1,1 +1,1 @@
-319
+320
More information about the Erp5-report
mailing list