cwvreg.py
branchstable
changeset 1917 eaf6e0edc509
parent 1769 fb91d2b8a441
child 1923 3802c2e37e72
equal deleted inserted replaced
1907:0f3363d24239 1917:eaf6e0edc509
   370         """return an entity class for the given entity type.
   370         """return an entity class for the given entity type.
   371         Try to find out a specific class for this kind of entity or
   371         Try to find out a specific class for this kind of entity or
   372         default to a dump of the class registered for 'Any'
   372         default to a dump of the class registered for 'Any'
   373         """
   373         """
   374         usercls = super(MulCnxCubicWebRegistry, self).etype_class(etype)
   374         usercls = super(MulCnxCubicWebRegistry, self).etype_class(etype)
       
   375         if etype == 'Any':
       
   376             return usercls
   375         usercls.e_schema = self.schema.eschema(etype)
   377         usercls.e_schema = self.schema.eschema(etype)
   376         return usercls
   378         return usercls
   377 
   379 
   378     def select(self, vobjects, *args, **kwargs):
   380     def select(self, vobjects, *args, **kwargs):
   379         """return an instance of the most specific object according
   381         """return an instance of the most specific object according