Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul Graydon
erp5
Commits
ce8e9131
Commit
ce8e9131
authored
Feb 17, 2021
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_forge: use Base_redirect when spreadsheet is invalid
parent
b0c0279b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_forge/CategoryTool_generateTranslationFile.py
..._skins/erp5_forge/CategoryTool_generateTranslationFile.py
+2
-3
No files found.
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_forge/CategoryTool_generateTranslationFile.py
View file @
ce8e9131
...
@@ -22,9 +22,8 @@ def invalid_category_spreadsheet_handler(message):
...
@@ -22,9 +22,8 @@ def invalid_category_spreadsheet_handler(message):
# action taken when an invalid spreadsheet is provided.
# action taken when an invalid spreadsheet is provided.
# we *raise* a Redirect, because we don't want the transaction to succeed
# we *raise* a Redirect, because we don't want the transaction to succeed
# note, we could make a dialog parameter to allow import invalid spreadsheet:
# note, we could make a dialog parameter to allow import invalid spreadsheet:
raise
ValueError
(
'Redirect'
,
'%s/view?portal_status_message=%s'
%
(
context
.
Base_redirect
(
'view'
,
keep_items
=
{
'portal_status_message'
:
message
),
context
.
portal_categories
.
absolute_url
(),
abort_transaction
=
True
)
message
))
category_list_mapping
=
context
.
Base_getCategoriesSpreadSheetMapping
(
import_file
,
category_list_mapping
=
context
.
Base_getCategoriesSpreadSheetMapping
(
import_file
,
invalid_spreadsheet_error_handler
=
invalid_category_spreadsheet_handler
)
invalid_spreadsheet_error_handler
=
invalid_category_spreadsheet_handler
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment