web/views/tableview.py
branchtls-sprint
changeset 660 5233a9457f6b
parent 527 6ceb0c3016df
child 688 cddfbdee0eb3
--- a/web/views/tableview.py	Tue Feb 17 14:00:17 2009 +0100
+++ b/web/views/tableview.py	Tue Feb 17 14:28:14 2009 +0100
@@ -5,6 +5,8 @@
 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
+from __future__ import with_statement
+
 __docformat__ = "restructuredtext en"
 
 from simplejson import dumps
@@ -222,7 +224,9 @@
         
 
     def render(self, cellvid, row, col, w):
-        self.view('cell', self.rset, row=row, col=col, cellvid=cellvid, w=w)
+        from cubicweb.selectors import traced_selection
+        with traced_selection( ('cell',) ):
+            self.view('cell', self.rset, row=row, col=col, cellvid=cellvid, w=w)
         
     def get_rows(self):
         return self.rset