cwvreg.py
changeset 4149 ecde9f78a080
parent 3998 94cc7cad3d2d
child 4252 6c4f109c2b03
--- 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