Commit ebcfdc1a authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[entity] avoid getting w in cw_extra_kwargs when calling .view

--HG--
branch : stable
parent 4c53a0cb186c
......@@ -432,12 +432,12 @@ class Entity(AppObject, dict):
def has_perm(self, action):
return self.e_schema.has_perm(self._cw, action, eid=self.eid)
def view(self, __vid, __registry='views', **kwargs):
def view(self, __vid, __registry='views', w=None, **kwargs):
"""shortcut to apply a view on this entity"""
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)
return view.render(row=self.cw_row, col=self.cw_col, w=w, **kwargs)
def absolute_url(self, *args, **kwargs):
"""return an absolute url to view this entity"""
......
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