[entity] pass cw_row and cw_col to select(vid, ...) in self.view
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 24 Sep 2009 00:23:32 +0200
changeset 3459 e134d2dd9992
parent 3457 0924d0d08d60
child 3460 e4843535db25
[entity] pass cw_row and cw_col to select(vid, ...) in self.view
entity.py
--- a/entity.py	Wed Sep 23 20:13:31 2009 +0200
+++ b/entity.py	Thu Sep 24 00:23:32 2009 +0200
@@ -263,7 +263,9 @@
 
     def view(self, vid, __registry='views', **kwargs):
         """shortcut to apply a view on this entity"""
-        view = self._cw.vreg[__registry].select(vid, self._cw, rset=self.cw_rset, **kwargs)
+        view = self._cw.vreg[__registry].select(vid, self._cw, rset=self.cw_rset,
+                                                row=self.cw_row, col=self.cw_col,
+                                                **kwargs)
         return view.render(row=self.cw_row, col=self.cw_col, **kwargs)
 
     def absolute_url(self, *args, **kwargs):