Commit e3dfcd64 authored by Adrien Di Mascio's avatar Adrien Di Mascio
Browse files

[entity] pass cw_row and cw_col to select(vid, ...) in self.view

parent 0924d0d08d60
......@@ -263,7 +263,9 @@ class Entity(AppObject, dict):
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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment