Commit a0b4cb95 authored by Aurel's avatar Aurel

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
parent d90ab49b
from Products.ERP5Type.Accessor.Accessor import Accessor as Method from MethodObject import Method
from Products.ERP5Type.Base import _aq_reset from Products.ERP5Type.Base import _aq_reset
""" """
Current implementation uses callable objects. Current implementation uses callable objects.
...@@ -43,6 +43,7 @@ class InteractorMethod(Method): ...@@ -43,6 +43,7 @@ class InteractorMethod(Method):
self.method = method self.method = method
self.func_code = method.func_code self.func_code = method.func_code
self.func_defaults = method.func_defaults self.func_defaults = method.func_defaults
self.__name__ = method.__name__
def registerBeforeAction(self, action, args, kw): def registerBeforeAction(self, action, args, kw):
self.before_action_list.append((action, args, kw)) self.before_action_list.append((action, args, kw))
......
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