when no context specified, should return non-zero score as documented
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 08 Feb 2010 21:22:10 +0100
changeset 4509 a17033cfc892
parent 4508 b329af3315b6
child 4510 8dc44329f5c8
when no context specified, should return non-zero score as documented
selectors.py
--- a/selectors.py	Mon Feb 08 21:21:50 2010 +0100
+++ b/selectors.py	Mon Feb 08 21:22:10 2010 +0100
@@ -969,7 +969,7 @@
     in a configurable place.
     """
     if context is None:
-        return 0
+        return 1
     propval = req.property_value('%s.%s.context' % (cls.__registry__,
                                                     cls.__regid__))
     if not propval: