From fdf81a85757678a3716974eb379b96600f56cbde Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Thu, 24 Feb 2011 10:53:08 +0000 Subject: [PATCH] erp5_forge: fix update svn action git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43659 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_vcs/BusinessTemplate_doSvnUpdate.xml | 19 +++++++++++++------ bt5/erp5_forge/bt/revision | 2 +- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doSvnUpdate.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doSvnUpdate.xml index 654e2092c8..97c2caa63b 100644 --- a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doSvnUpdate.xml +++ b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doSvnUpdate.xml @@ -50,15 +50,22 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>try:\n + <value> <string encoding="cdata"><![CDATA[ + +try:\n new_bt = context.getVcsTool().update(keep)\n except Exception, error:\n - return context.BusinessTemplate_handleException(error, script.id, form_id=form_id, keep=keep)\n + return context.BusinessTemplate_handleException(\n + error, script.id, form_id=form_id, keep=keep)\n \n -context.REQUEST.set(\'portal_status_message\', \'Working copy updated successfully.\')\n -return new_bt.BusinessTemplate_viewInstallationDialog(\n - workflow_action=\'install_action\', form_id=form_id)\n -</string> </value> +request = context.REQUEST\n +request.set(\'portal_status_message\', \'Working copy updated successfully.\')\n +return request.RESPONSE.redirect(\n + \'%s/BusinessTemplate_viewInstallationDialog?workflow_action=install_action&form_id=%s\'\n + % (new_bt.absolute_url_path(), form_id))\n + + +]]></string> </value> </item> <item> <key> <string>_params</string> </key> diff --git a/bt5/erp5_forge/bt/revision b/bt5/erp5_forge/bt/revision index a557316495..0905ea78ab 100644 --- a/bt5/erp5_forge/bt/revision +++ b/bt5/erp5_forge/bt/revision @@ -1 +1 @@ -641 \ No newline at end of file +642 \ No newline at end of file -- 2.30.9