From 2892c807b24cbe87b1ef6630fd9493f037080955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Wed, 22 Mar 2006 10:54:36 +0000 Subject: [PATCH] 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 --- product/ERP5Type/patches/DCWorkflow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/product/ERP5Type/patches/DCWorkflow.py b/product/ERP5Type/patches/DCWorkflow.py index dc6cd89e8f..e93d265077 100755 --- a/product/ERP5Type/patches/DCWorkflow.py +++ b/product/ERP5Type/patches/DCWorkflow.py @@ -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 -- 2.30.9