allow selectors to be a single element instead of tuples (this is the first step towards removing the metaclass)
--- a/vregistry.py Tue Feb 17 18:17:51 2009 +0100
+++ b/vregistry.py Tue Feb 17 20:32:01 2009 +0100
@@ -105,6 +105,8 @@
"can't be used together")
if '__select__' not in classdict and '__selectors__' in classdict:
selectors = classdict['__selectors__']
+ if not isinstance(selectors, (tuple, list)):
+ selectors = (selectors,)
if len(selectors) > 1:
classdict['__select__'] = classmethod(chainall(*selectors))
else: