[Erp5-report] r16452 - /erp5/trunk/products/ERP5Type/Utils.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Sep 18 15:14:18 CEST 2007


Author: jerome
Date: Tue Sep 18 15:14:18 2007
New Revision: 16452

URL: http://svn.erp5.org?rev=16452&view=rev
Log:
this code has no effect, because [Base, List, ...] are modules, not classes.
Anyway __call__ is already psyco.bind'ed in Accessor class.


Modified:
    erp5/trunk/products/ERP5Type/Utils.py

Modified: erp5/trunk/products/ERP5Type/Utils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Utils.py?rev=16452&r1=16451&r2=16452&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py (original)
+++ erp5/trunk/products/ERP5Type/Utils.py Tue Sep 18 15:14:18 2007
@@ -1397,14 +1397,6 @@
 from Accessor import Base, List, Acquired, Content,\
                      AcquiredProperty, ContentProperty, \
                      Alias
-import types
-
-# Compile accessors
-for accessor in [Base, List, Acquired, Content]:
-  for a_class in accessor.__dict__.items():
-    if type(a_class) is types.ClassType:
-      if hasattr(a_class, '__call__'):
-        bind(getattr(a_class, '__call__'))
 
 def createDefaultAccessors(property_holder, id, prop = None,
     read_permission=Permissions.AccessContentsInformation,




More information about the Erp5-report mailing list