[Erp5-report] r20997 - /erp5/trunk/products/ERP5Type/Interactor.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 16 16:28:29 CEST 2008
Author: aurel
Date: Fri May 16 16:28:27 2008
New Revision: 20997
URL: http://svn.erp5.org?rev=20997&view=rev
Log:
InteractorMethod should inherit of Method and not Accessor
define __name__ on InteractorMethod
Modified:
erp5/trunk/products/ERP5Type/Interactor.py
Modified: erp5/trunk/products/ERP5Type/Interactor.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Interactor.py?rev=20997&r1=20996&r2=20997&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Interactor.py (original)
+++ erp5/trunk/products/ERP5Type/Interactor.py Fri May 16 16:28:27 2008
@@ -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 @@
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))
More information about the Erp5-report
mailing list