--- 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)()