diff --git a/product/ERP5Type/Interactor/Interactor.py b/product/ERP5Type/Interactor/Interactor.py index aaba11256dd1d6cf0e87510720c99a1663036666..d904fba90cad3f63410434d7a2d4259f7e0979a6 100644 --- a/product/ERP5Type/Interactor/Interactor.py +++ b/product/ERP5Type/Interactor/Interactor.py @@ -51,7 +51,7 @@ class InteractorMethodCall: from before and after scripts if needed. """ - def __init__(self, method, instance, *args, **kw): + def __init__(self, method, instance, args, kw): self.instance = instance self.args = args self.kw = kw @@ -82,7 +82,7 @@ class InteractorMethod(Method): self.after_action_list.append((action, args, kw)) def __call__(self, instance, *args, **kw): - method_call_object = InteractorMethodCall(self.method, instance, *args, **kw) + method_call_object = InteractorMethodCall(self.method, instance, args, kw) for action, args, kw in self.before_action_list: action(method_call_object, *args, **kw) result = method_call_object()