diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installRepositoryBusinessTemplateList.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installRepositoryBusinessTemplateList.xml index 1307ff5d01ae273ca791fd7262f145ae8cde6150..3bd46807165202963318b27d373c6a8c3a528e12 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installRepositoryBusinessTemplateList.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installRepositoryBusinessTemplateList.xml @@ -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 @@ selection_name = kw[\'list_selection_name\']\n 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 @@ for uid in uids:\n 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 @@ for uid in uids:\n 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 @@ RESPONSE.redirect(\'%s/TemplateTool_viewMultiInstallationDialog?%s&form_id=Busin <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> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index ab760c939afd177a8fb0343cb528e9e7e5ca1244..194ba8cc7594b96181da7c25c73002be08d56ff5 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -319 \ No newline at end of file +320 \ No newline at end of file