# HG changeset patch # User Aurelien Campeas # Date 1246962449 -7200 # Node ID b478c3a8ad2a10b331dd2a342c320be660c29e17 # Parent 95da5d9f08704c1ce9966e228b11876578538190 typos, cleanup, lighter traced seletion output diff -r 95da5d9f0870 -r b478c3a8ad2a selectors.py --- a/selectors.py Tue Jul 07 12:24:40 2009 +0200 +++ b/selectors.py Tue Jul 07 12:27:29 2009 +0200 @@ -79,7 +79,7 @@ ret = selector(cls, *args, **kwargs) if TRACED_OIDS == 'all' or oid in TRACED_OIDS: #SELECTOR_LOGGER.warning('selector %s returned %s for %s', selname, ret, cls) - print 'selector %s returned %s for %s' % (selname, ret, vobj) + print '%s -> %s for %s' % (selname, ret, vobj) return ret traced.__name__ = selector.__name__ return traced diff -r 95da5d9f0870 -r b478c3a8ad2a vregistry.py --- a/vregistry.py Tue Jul 07 12:24:40 2009 +0200 +++ b/vregistry.py Tue Jul 07 12:27:29 2009 +0200 @@ -1,10 +1,10 @@ """ -* the vregistry handle various type of objects interacting - together. The vregistry handle registration of dynamically loaded - objects and provide a convenient api access to those objects +* the vregistry handles various types of objects interacting + together. The vregistry handles registration of dynamically loaded + objects and provides a convenient api to access those objects according to a context -* to interact with the vregistry, object should inherit from the +* to interact with the vregistry, objects should inherit from the VObject abstract class * the selection procedure has been generalized by delegating to a @@ -188,9 +188,6 @@ # methods for explicit (un)registration ################################### -# def clear(self, key): -# regname, oid = key.split('.') -# self[regname].pop(oid, None) def register_all(self, objects, modname, butclasses=()): for obj in objects: try: