From a0b4cb953565ff071d3205ec222ebfa49b780aca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Fri, 16 May 2008 14:28:27 +0000 Subject: [PATCH] InteractorMethod should inherit of Method and not Accessor define __name__ on InteractorMethod git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20997 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Interactor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5Type/Interactor.py b/product/ERP5Type/Interactor.py index 1eba91bc8f..03f42a8d81 100644 --- a/product/ERP5Type/Interactor.py +++ b/product/ERP5Type/Interactor.py @@ -1,4 +1,4 @@ -from Products.ERP5Type.Accessor.Accessor import Accessor as Method +from MethodObject import Method from Products.ERP5Type.Base import _aq_reset """ Current implementation uses callable objects. @@ -43,6 +43,7 @@ class InteractorMethod(Method): self.method = method self.func_code = method.func_code self.func_defaults = method.func_defaults + self.__name__ = method.__name__ def registerBeforeAction(self, action, args, kw): self.before_action_list.append((action, args, kw)) -- 2.30.9