[tableview] drop useless code: cellvid systematically given by RsetTableView, according to its .[non]finalview attribute stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 11 Jan 2012 18:28:17 +0100
branchstable
changeset 8157 098c83a99807
parent 8154 151058945234
child 8159 f8678956bd05
child 8160 e53c003e3d37
[tableview] drop useless code: cellvid systematically given by RsetTableView, according to its .[non]finalview attribute
web/views/tableview.py
--- a/web/views/tableview.py	Mon Jan 09 16:20:49 2012 +0100
+++ b/web/views/tableview.py	Wed Jan 11 18:28:17 2012 +0100
@@ -510,11 +510,10 @@
 
 class RsetTableColRenderer(AbstractColumnRenderer):
     """Default renderer for :class:`RsetTableView`."""
-    default_cellvid = 'incontext'
 
-    def __init__(self, cellvid=None, **kwargs):
+    def __init__(self, cellvid, **kwargs):
         super(RsetTableColRenderer, self).__init__(**kwargs)
-        self.cellvid = cellvid or self.default_cellvid
+        self.cellvid = cellvid
 
     def bind(self, view, colid):
         super(RsetTableColRenderer, self).bind(view, colid)