# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1234914504 -3600 # Node ID 39721e56b56dea63c8e5957bdb33da3af71fc5d3 # Parent 9b8cb1976992b7b84850670c4dddcdd4b6a0a0f3 assert oid diff -r 9b8cb1976992 -r 39721e56b56d 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] = []