vregistry.py
branchtls-sprint
changeset 946 a130b5ceeca9
parent 943 9fdfa8d38359
child 1046 52ee022d87e3
--- 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)()