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 654e2092c8564c868cfbec58e682e886e6be9de2..97c2caa63b80e7d3e0b2e57d123a89712362c8f6 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 a557316495daf87a9067fa9ba15f15b66963a12a..0905ea78aba8dbc76598cb3610907683a1cb4525 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