entity.py
changeset 3418 7b49fa7e942d
parent 3405 9d31c9cb8103
child 3452 7c008d31ef1f
--- a/entity.py	Wed Sep 23 11:22:19 2009 +0200
+++ b/entity.py	Wed Sep 23 12:28:28 2009 +0200
@@ -263,8 +263,8 @@
 
     def view(self, vid, __registry='views', **kwargs):
         """shortcut to apply a view on this entity"""
-        return self._cw.vreg[__registry].render(
-            vid, self._cw, rset=self.rset, row=self.row, col=self.col, **kwargs)
+        view = self._cw.vreg[__registry].select(vid, self._cw, rset=self.cw_rset)
+        return view.render(row=self.cw_row, col=self.cw_col, **kwargs)
 
     def absolute_url(self, *args, **kwargs):
         """return an absolute url to view this entity"""