equal
deleted
inserted
replaced
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 |