__select__ is not a classmethod anymore, it's a pure function (or a Selector instance), tls-sprint
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 18 Feb 2009 00:22:47 +0100
branchtls-sprint
changeset 735 d22baa02cbaa
parent 734 4153a82a60a4
child 736 18c940e3f98d
__select__ is not a classmethod anymore, it's a pure function (or a Selector instance), we have to pass the class explicitly
vregistry.py
--- a/vregistry.py	Wed Feb 18 00:12:36 2009 +0100
+++ b/vregistry.py	Wed Feb 18 00:22:47 2009 +0100
@@ -296,7 +296,7 @@
         """
         score, winners = 0, []
         for vobject in vobjects:
-            vobjectscore = vobject.__select__(*args, **kwargs)
+            vobjectscore = vobject.__select__(vobject, *args, **kwargs)
             if vobjectscore > score:
                 score, winners = vobjectscore, [vobject]
             elif vobjectscore > 0 and vobjectscore == score: