assert __select__ is callable tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 18 Feb 2009 15:49:59 +0100
branchtls-sprint
changeset 804 cc339d3ff7ae
parent 803 ab8d2282e738
child 805 6e99feeba28b
assert __select__ is callable
vregistry.py
--- a/vregistry.py	Wed Feb 18 15:48:57 2009 +0100
+++ b/vregistry.py	Wed Feb 18 15:49:59 2009 +0100
@@ -237,6 +237,7 @@
         # as such because we need to compose registered in some cases
         vobject = obj.registered.im_func(obj, self)
         assert not vobject in vobjects
+        assert callable(vobject.__select__), vobject
         vobjects.append(vobject)
         try:
             vname = vobject.__name__