[entity] fix view selection in entity.view
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 23 Sep 2009 19:40:47 +0200
changeset 3452 7c008d31ef1f
parent 3451 6b46d73823f5
child 3453 e2572c9ca3ec
[entity] fix view selection in entity.view
entity.py
--- a/entity.py	Wed Sep 23 19:40:19 2009 +0200
+++ b/entity.py	Wed Sep 23 19:40:47 2009 +0200
@@ -263,7 +263,7 @@
 
     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)
+        view = self._cw.vreg[__registry].select(vid, self._cw, rset=self.cw_rset, **kwargs)
         return view.render(row=self.cw_row, col=self.cw_col, **kwargs)
 
     def absolute_url(self, *args, **kwargs):