272 def metainformation(self): |
272 def metainformation(self): |
273 return {'type': self.id, 'source': {'uri': 'system'}, 'extid': None} |
273 return {'type': self.id, 'source': {'uri': 'system'}, 'extid': None} |
274 |
274 |
275 def view(self, vid, __registry='views', **kwargs): |
275 def view(self, vid, __registry='views', **kwargs): |
276 """shortcut to apply a view on this entity""" |
276 """shortcut to apply a view on this entity""" |
277 return self.vreg.render(__registry, vid, self.req, rset=self.rset, |
277 return self.vreg[__registry]render(vid, self.req, rset=self.rset, |
278 row=self.row, col=self.col, **kwargs) |
278 row=self.row, col=self.col, **kwargs) |
279 |
279 |
280 @classmethod |
280 @classmethod |
281 def _rest_attr_info(cls): |
281 def _rest_attr_info(cls): |
282 mainattr, needcheck = super(Model, cls)._rest_attr_info() |
282 mainattr, needcheck = super(Model, cls)._rest_attr_info() |
283 if needcheck: |
283 if needcheck: |