Commit c86e7eaa authored by Jérome Perrin's avatar Jérome Perrin

this code has no effect, because [Base, List, ...] are modules, not classes.

Anyway __call__ is already psyco.bind'ed in Accessor class.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16452 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 377cab86
......@@ -1397,14 +1397,6 @@ from Base import Base as BaseClass
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,
......
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