Module: check_mk
Branch: master
Commit: a2c0d6be06e654ff7303eb577f4090ebbbd65191
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a2c0d6be06e654…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Aug 23 12:22:36 2018 +0200
Use object for configured sidebar snapins during processing
* During runtime the configured sidebar snapins are represented
as UserSidebarSnapin() objects.
The persisted snapin config is now represented as dictionariy
instead of tuples. We could also persist it using the internal
classes. This would be something we need to decide in general
before starting with something like this here.
* Snapin visibility is now represented using SnapinVisibility enum.
* Cleaned up special case "off" for removing snapins instead of
toggling the visibility.
CMK-855
Change-Id: I39ca11073d58ce34f0eb2a8de3d09647c437f0c5
---
cmk/gui/sidebar.py | 165 ++++++++++++++++++++++++++++++-----------
tests/unit/web/test_sidebar.py | 80 +++++++++++---------
2 files changed, 165 insertions(+), 80 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=a2c0d6be06…