assert oid tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 18 Feb 2009 00:48:24 +0100
branchtls-sprint
changeset 739 39721e56b56d
parent 738 9b8cb1976992
child 740 e92c19eaf63f
child 742 99115e029dca
assert oid
vregistry.py
--- a/vregistry.py	Wed Feb 18 00:45:29 2009 +0100
+++ b/vregistry.py	Wed Feb 18 00:48:24 2009 +0100
@@ -235,6 +235,7 @@
         assert not '__abstract__' in obj.__dict__
         registryname = registryname or obj.__registry__
         oid = oid or obj.id
+        assert oid
         registry = self._registries.setdefault(registryname, {})
         if clear:
             vobjects = registry[oid] =  []