Commit 648a7a04 authored by Nicolas Delaby's avatar Nicolas Delaby

Raise exception instance

parent fe8c1958
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Message import translateString\n <value> <string>from Products.ERP5Type.Message import translateString\n
from Products.ERP5Type.Document import newTempBase\n from Products.ERP5Type.Document import newTempBase\n
from zExceptions import Redirect\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
\n \n
# Initialise some general variables\n # Initialise some general variables\n
...@@ -109,9 +110,9 @@ else:\n ...@@ -109,9 +110,9 @@ else:\n
# action taken when an invalid spreadsheet is provided.\n # action taken when an invalid spreadsheet is provided.\n
# we *raise* a Redirect, because we don\'t want the transaction to succeed\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 # 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 context.portal_categories.absolute_url(),\n
message)\n message))\n
\n \n
category_list_spreadsheet_mapping = context.Base_getCategoriesSpreadSheetMapping(import_file,\n category_list_spreadsheet_mapping = context.Base_getCategoriesSpreadSheetMapping(import_file,\n
invalid_spreadsheet_error_handler=invalid_category_spreadsheet_handler)\n invalid_spreadsheet_error_handler=invalid_category_spreadsheet_handler)\n
......
40968 40969
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment