[registry] fix registration logging messages stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 13 Aug 2009 13:12:55 +0200
branchstable
changeset 2836 b94b9c48111f
parent 2782 998f24dabd0d
child 2837 65df5df190a5
[registry] fix registration logging messages
vregistry.py
--- a/vregistry.py	Wed Aug 12 13:30:45 2009 +0200
+++ b/vregistry.py	Thu Aug 13 13:12:55 2009 +0200
@@ -298,7 +298,7 @@
         except AttributeError:
             vname = obj.__class__.__name__
         self.debug('registered appobject %s in registry %s with id %s',
-                   vname, registryname, oid)
+                   vname, registryname, oid or obj.id)
         self._loadedmods[obj.__module__]['%s.%s' % (obj.__module__, oid)] = obj
 
     def unregister(self, obj, registryname=None):