fix etype_class(Any) when multiple sources stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Sun, 24 May 2009 02:04:07 +0200
branchstable
changeset 1917 eaf6e0edc509
parent 1907 0f3363d24239
child 1918 a9db0eb45117
fix etype_class(Any) when multiple sources
cwvreg.py
--- a/cwvreg.py	Fri May 22 15:48:25 2009 +0200
+++ b/cwvreg.py	Sun May 24 02:04:07 2009 +0200
@@ -372,6 +372,8 @@
         default to a dump of the class registered for 'Any'
         """
         usercls = super(MulCnxCubicWebRegistry, self).etype_class(etype)
+        if etype == 'Any':
+            return usercls
         usercls.e_schema = self.schema.eschema(etype)
         return usercls