--- a/selectors.py Tue Feb 17 14:00:17 2009 +0100
+++ b/selectors.py Tue Feb 17 14:28:14 2009 +0100
@@ -483,12 +483,16 @@
self.expected_ifaces = expected_ifaces
def score_class(self, eclass, req):
+ print '***********************************'
score = 0
for iface in self.expected_ifaces:
+ print 'TESTING', iface, 'on', eclass
if isinstance(iface, basestring):
# entity type
iface = eclass.vreg.etype_class(iface)
+ print 'found iface ===', iface
if implements_iface(eclass, iface):
+ print 'and implementing !!!'
score += 1
if getattr(iface, '__registry__', None) == 'etypes':
score += 1
@@ -504,6 +508,7 @@
score += index
# print 'etype majoration', index
break
+ print '***********************************', score
return score