Selector objects need to provide a `func_name` attribute for minimum (backward)
compatibilit with selectors defined as functions
--- a/vregistry.py Tue Feb 17 22:24:03 2009 +0100
+++ b/vregistry.py Tue Feb 17 22:25:16 2009 +0100
@@ -587,6 +587,11 @@
selector logic itself should be implemented in the __call__ method
"""
+ @property
+ def func_name(self):
+ # backward compatibility
+ return self.__class__.__name__
+
def search_selector(self, selector):
"""search for the given selector or selector instance in the selectors
tree. Return it of None if not found