Commit 7a437180 authored by Jérome Perrin's avatar Jérome Perrin

store the ValidationFailed message in workflow history, not the ValidationFailed object itself.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4228 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1744d20e
...@@ -553,7 +553,7 @@ def DCWorkflowDefinition_executeTransition(self, ob, tdef=None, kwargs=None): ...@@ -553,7 +553,7 @@ def DCWorkflowDefinition_executeTransition(self, ob, tdef=None, kwargs=None):
script(sci) # May throw an exception. script(sci) # May throw an exception.
except ValidationFailed, validation_exc: except ValidationFailed, validation_exc:
before_script_success = 0 before_script_success = 0
before_script_error_message = validation_exc before_script_error_message = str(validation_exc)
except ObjectMoved, moved_exc: except ObjectMoved, moved_exc:
ob = moved_exc.getNewObject() ob = moved_exc.getNewObject()
# Re-raise after transition # Re-raise after transition
...@@ -2157,4 +2157,4 @@ if PropertiedUser is not None: ...@@ -2157,4 +2157,4 @@ if PropertiedUser is not None:
\ 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