# HG changeset patch # User Adrien Di Mascio # Date 1234905916 -3600 # Node ID f758b86cf484d9c70133a9e25e3e3a18997c40bf # Parent 766c881e101fa733d09eedbc50b93ccb7dc24441 Selector objects need to provide a `func_name` attribute for minimum (backward) compatibilit with selectors defined as functions diff -r 766c881e101f -r f758b86cf484 vregistry.py --- 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