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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
erp5
Commits
d2a3c359
Commit
d2a3c359
authored
May 20, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Category Tool: Fixup
92c93bdf
not showing spreadsheet errors anymore
parent
2d546093
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFile.xml
...ortal_skins/erp5_core/CategoryTool_importCategoryFile.xml
+4
-2
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFile.xml
View file @
d2a3c359
...
...
@@ -99,7 +99,7 @@ def hasRelation(obj):\n
def invalid_category_spreadsheet_handler(message):\n
report(\n
field_type=\'Error\',\n
message=
message
,\n
message=
str(message)
,\n
)\n
return True\n
category_list_spreadsheet_dict = context.Base_getCategoriesSpreadSheetMapping(\n
...
...
@@ -107,7 +107,9 @@ category_list_spreadsheet_dict = context.Base_getCategoriesSpreadSheetMapping(\n
invalid_spreadsheet_error_handler=invalid_category_spreadsheet_handler,\n
)\n
if detailed_report_result:\n
REQUEST.RESPONSE.write(portal_categories.CategoryTool_viewImportReport())\n
REQUEST.other[\'portal_status_message\'] = translateString(\'Spreasheet contains errors\')\n
REQUEST.other[\'category_import_report\'] = detailed_report_result\n
REQUEST.RESPONSE.write(portal_categories.CategoryTool_viewImportReport().encode(\'utf-8\'))\n
raise Exception(\'Spreadsheet contains errors\')\n
\n
for base_category, category_list in category_list_spreadsheet_dict.iteritems():\n
...
...
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