vregistry.py
changeset 2838 107421e426de
parent 2829 054a8805da52
parent 2836 b94b9c48111f
child 2844 4657d6e16e0c
--- a/vregistry.py	Thu Aug 13 13:08:27 2009 +0200
+++ b/vregistry.py	Fri Aug 14 00:02:08 2009 +0200
@@ -314,7 +314,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):