Commit 2892c807 authored by Aurel's avatar Aurel

instead of giving acces to subobjects, register parameter in Exception class

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6171 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9a046245
......@@ -105,9 +105,8 @@ class ValidationFailed(Exception):
"""
Redefine init in order to register the message class instance
"""
Exception.__init__(self)
Exception.__init__(self, message_instance)
self.msg = message_instance
__allow_access_to_unprotected_subobjects__ = 1
DCWorkflow.ValidationFailed = ValidationFailed
......
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