merge stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 07 Jul 2009 12:29:01 +0200
branchstable
changeset 2309 d203060334e7
parent 2307 060c3f3f7d28 (current diff)
parent 2308 b478c3a8ad2a (diff)
child 2310 80fcdfbb8eed
merge
--- 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
--- 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: