[table view] we should call the cell view using the table rset, not one rebuilded for a specific entity stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 10 May 2010 15:14:47 +0200
branchstable
changeset 5504 97ed78b54956
parent 5503 5b7eb0839da3
child 5505 7f98d22ac6e4
[table view] we should call the cell view using the table rset, not one rebuilded for a specific entity
web/views/tableview.py
--- a/web/views/tableview.py	Mon May 10 15:14:13 2010 +0200
+++ b/web/views/tableview.py	Mon May 10 15:14:47 2010 +0200
@@ -287,8 +287,7 @@
         """
         etype, val = self.cw_rset.description[row][col], self.cw_rset[row][col]
         if val is not None and not self._cw.vreg.schema.eschema(etype).final:
-            e = self.cw_rset.get_entity(row, col)
-            e.view(cellvid or 'outofcontext', w=self.w)
+            self.wview(cellvid or 'outofcontext', self.cw_rset, row=row, col=col)
         elif val is None:
             # This is usually caused by a left outer join and in that case,
             # regular views will most certainly fail if they don't have