diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFile.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFile.xml index 6dc2d71efe4119e67c5e2e6c5e58c23f7f211983..d1aa322b2de92143154ea8cdebf6c7fed963ed34 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFile.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFile.xml @@ -52,6 +52,7 @@ <key> <string>_body</string> </key> <value> <string>from Products.ERP5Type.Message import translateString\n from Products.ERP5Type.Document import newTempBase\n +from zExceptions import Redirect\n portal = context.getPortalObject()\n \n # Initialise some general variables\n @@ -109,9 +110,9 @@ else:\n # action taken when an invalid spreadsheet is provided.\n # we *raise* a Redirect, because we don\'t want the transaction to succeed\n # note, we could make a dialog parameter to allow import invalid spreadsheet:\n - raise \'Redirect\', \'%s/view?portal_status_message=%s\' % (\n + raise Redirect(\'%s/view?portal_status_message=%s\' % (\n context.portal_categories.absolute_url(),\n - message)\n + message))\n \n category_list_spreadsheet_mapping = context.Base_getCategoriesSpreadSheetMapping(import_file,\n invalid_spreadsheet_error_handler=invalid_category_spreadsheet_handler)\n diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 8c0d322f50a451b113cf4a14d29e79251e869a72..838b7a6bacd4ff3d10d0f2eca59e45e72136df7b 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -40968 \ No newline at end of file +40969 \ No newline at end of file