Module: check_mk
Branch: master
Commit: 998ec997ff0d2e982c60b1d8e630516ec76a0b10
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=998ec997ff0d2e…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Dec 13 09:16:44 2018 +0100
Inline begin_group(), it makes it clearer what's going on with the tables.
Change-Id: I51e7f873b3c733c1eea993348b29454dc83363aa
---
cmk/gui/werks.py | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/cmk/gui/werks.py b/cmk/gui/werks.py
index d9244f8..e8d96c3 100644
--- a/cmk/gui/werks.py
+++ b/cmk/gui/werks.py
@@ -314,18 +314,6 @@ def render_werks_table():
werk_table_options["compatibility"] = ["incomp_unack"]
current_group, number_of_groups, number_of_werks = False, 0, 0
-
- def begin_group(title):
- table.begin(
- title=title,
- limit=None,
- searchable=False,
- sortable=False,
- css="werks",
- update_page_head=False)
-
- werklist = []
-
if werk_table_options["grouping"] == "version":
werklist = cmk.werks.sort_by_version_and_component(g_werks.values())
else:
@@ -341,7 +329,13 @@ def render_werks_table():
if current_group != False:
table.end()
- begin_group(group)
+ table.begin(
+ title=group,
+ limit=None,
+ searchable=False,
+ sortable=False,
+ css="werks",
+ update_page_head=False)
current_group = group
number_of_werks += 1