# HG changeset patch # User Sylvain Thénault # Date 1246962541 -7200 # Node ID d203060334e7de3579ba92cf400f3a731838ff3f # Parent 060c3f3f7d2863846dd5d6c58ca1eb708f3f0fdb# Parent b478c3a8ad2a10b331dd2a342c320be660c29e17 merge diff -r 060c3f3f7d28 -r d203060334e7 selectors.py --- a/selectors.py Tue Jul 07 12:01:39 2009 +0200 +++ b/selectors.py Tue Jul 07 12:29:01 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 060c3f3f7d28 -r d203060334e7 vregistry.py --- a/vregistry.py Tue Jul 07 12:01:39 2009 +0200 +++ b/vregistry.py Tue Jul 07 12:29:01 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: