Do not compute actions list in TableLayout view when display_actions attribute is unset stable
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 12 Jul 2013 10:39:01 +0200
branchstable
changeset 9166 e47e192ea0d9
parent 9165 7ebf3b1cdb4c
child 9167 c05652b108ce
Do not compute actions list in TableLayout view when display_actions attribute is unset Closes #3007281
web/views/tableview.py
--- a/web/views/tableview.py	Fri Jul 12 09:55:26 2013 +0200
+++ b/web/views/tableview.py	Fri Jul 12 10:39:01 2013 +0200
@@ -201,10 +201,11 @@
             facetsform.render(w, vid=self.view.__regid__, cssclass=cssclass,
                               divid=self.view.domid)
         actions = []
-        if self.add_view_actions:
-            actions = self.view.table_actions()
-        if self.display_filter and self.hide_filter and (facetsform or not generate_form):
-            actions += self.show_hide_filter_actions(not generate_form)
+        if self.display_actions:
+            if self.add_view_actions:
+                actions = self.view.table_actions()
+            if self.display_filter and self.hide_filter and (facetsform or not generate_form):
+                actions += self.show_hide_filter_actions(not generate_form)
         self.render_table(w, actions, self.view.paginable)
         if facetsform and self.display_filter == 'bottom':
             cssclass = u'hidden' if self.hide_filter else u''