[entity table view] add count default to true on main entity column
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 03 Nov 2011 11:18:37 +0100
changeset 8046 bdd555df7a91
parent 8045 c81d6f57ae9a
child 8049 a48301a44b50
[entity table view] add count default to true on main entity column
web/views/tableview.py
--- a/web/views/tableview.py	Thu Nov 03 11:18:35 2011 +0100
+++ b/web/views/tableview.py	Thu Nov 03 11:18:37 2011 +0100
@@ -711,10 +711,10 @@
     If header not specified, it would be built using entity types in the main
     column.
     """
-    def __init__(self, vid='incontext', **kwargs):
+    def __init__(self, vid='incontext', addcount=True, **kwargs):
         kwargs.setdefault('renderfunc', lambda w, x: x.view(vid, w=w))
         kwargs.setdefault('sortfunc', lambda x: x.sortvalue())
-        super(MainEntityColRenderer, self).__init__(**kwargs)
+        super(MainEntityColRenderer, self).__init__(addcount=addcount, **kwargs)
 
     def default_header(self):
         view = self.view