cubicweb #343387 etype_class Any and multi-source [resolved]

when calling etype_class('Any') with a multi-source configured instance, the following fix is needed:

diff -r 0f3363d24239 cwvreg.py
--- a/cwvreg.py Fri May 22 15:48:25 2009 +0200
+++ b/cwvreg.py Sat May 23 20:28:39 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
prioritynormal
typebug
done in3.2.1
load0.100
load left0.000
closed by<not specified>