selectors.py
branchtls-sprint
changeset 660 5233a9457f6b
parent 657 fd019f41aa2f
child 689 a9d9421d1be0
child 692 800592b8d39b
--- 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