[cleanup] add some notes stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 31 Mar 2010 09:58:44 +0200
branchstable
changeset 5096 e25979a6d795
parent 5095 eaf522b9b998
child 5097 60a237638f57
[cleanup] add some notes
vregistry.py
--- a/vregistry.py	Wed Mar 31 09:58:20 2010 +0200
+++ b/vregistry.py	Wed Mar 31 09:58:44 2010 +0200
@@ -222,6 +222,8 @@
                                      % (args, kwargs.keys(),
                                         [repr(v) for v in appobjects]))
         if len(winners) > 1:
+            # don't we want the opposite: log in production environement, error
+            # while debugging?
             if self.config.debugmode:
                 self.error('select ambiguity, args: %s\nkwargs: %s %s',
                            args, kwargs.keys(), [repr(v) for v in winners])
@@ -334,6 +336,7 @@
         try:
             vname = obj.__name__
         except AttributeError:
+            # XXX may occurs?
             vname = obj.__class__.__name__
         for registryname in class_registries(obj, registryname):
             registry = self.setdefault(registryname)