author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Mon, 21 Dec 2009 18:27:29 +0100 | |
changeset 4149 | ecde9f78a080 |
parent 4147 | 52fe79a98b21 |
child 4150 | 2835482b8daf |
--- a/cwvreg.py Fri Dec 18 15:10:57 2009 +0100 +++ b/cwvreg.py Mon Dec 21 18:27:29 2009 +0100 @@ -145,7 +145,9 @@ """ etype = str(etype) if etype == 'Any': - return self.select('Any', 'Any') + objects = self['Any'] + assert len(objects) == 1, objects + return objects[0] eschema = self.schema.eschema(etype) baseschemas = [eschema] + eschema.ancestors() # browse ancestors from most specific to most generic and try to find an