goa/db.py
changeset 2650 18aec79ec3a3
parent 1977 606923dff11b
child 2792 135580d15d42
child 3689 deb13e88e037
equal deleted inserted replaced
2649:5d4a943695d1 2650:18aec79ec3a3
   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: