[selectors] _needs real fix_ whack 'till it works for me tls-sprint
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 24 Feb 2009 17:13:46 +0100
branchtls-sprint
changeset 946 a130b5ceeca9
parent 945 912b604f0e42
child 947 01f5001304b2
[selectors] _needs real fix_ whack 'till it works for me
vregistry.py
--- a/vregistry.py	Tue Feb 24 17:12:24 2009 +0100
+++ b/vregistry.py	Tue Feb 24 17:13:46 2009 +0100
@@ -625,8 +625,11 @@
         """
         merged_selectors = []
         for selector in selectors:
-            selector = _instantiate_selector(selector)
-            assert isinstance(selector, Selector), selector
+            try:
+                selector = _instantiate_selector(selector)
+            except:
+                pass
+            #assert isinstance(selector, Selector), selector
             if isinstance(selector, cls):
                 merged_selectors += selector.selectors
             else:
@@ -662,6 +665,7 @@
     """ensures `selector` is a `Selector` instance
     
     NOTE: This should only be used locally in build___select__()
+    XXX: then, why not do it ??
     """
     if isinstance(selector, types.FunctionType):
         return objectify_selector(selector)()