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
Boris Kocherov
erp5
Commits
4583881c
Commit
4583881c
authored
Apr 07, 2016
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: catch ValidationFailed exception in Base_edit needed for interaction_workflow
parent
fc47ce29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.py
...core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.py
+10
-3
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.py
View file @
4583881c
...
...
@@ -9,6 +9,7 @@
"""
from
Products.Formulator.Errors
import
FormValidationError
from
Products.CMFActivity.Errors
import
ActivityPendingError
from
Products.DCWorkflow.DCWorkflow
import
ValidationFailed
request
=
container
.
REQUEST
portal
=
context
.
getPortalObject
()
...
...
@@ -235,9 +236,15 @@ try:
# Return parsed values
if
silent_mode
:
return
(
kw
,
encapsulated_editor_list
),
'edit'
# Maybe we should build a list of objects we need
# Update basic attributes
context
.
edit
(
REQUEST
=
request
,
edit_order
=
edit_order
,
**
kw
)
try
:
# Maybe we should build a list of objects we need
# Update basic attributes
context
.
edit
(
REQUEST
=
request
,
edit_order
=
edit_order
,
**
kw
)
except
ValidationFailed
,
message
:
# interaction workflow issue data validation error
if
getattr
(
message
,
'msg'
,
None
)
and
same_type
(
message
.
msg
,
[]):
message
=
'. '
.
join
(
'%s'
%
x
for
x
in
message
.
msg
)
for
encapsulated_editor
in
encapsulated_editor_list
:
encapsulated_editor
.
edit
(
context
)
except
ActivityPendingError
,
e
:
...
...
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