Module: check_mk
Branch: master
Commit: 2ad3ec71258cadab31600594959f46025da61687
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2ad3ec71258cad…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Aug 21 20:51:04 2018 +0200
Introduce UserSidebarConfig() for managing the users sidebar state
* Moved save_user_config / load_user_config to this class
* Wraps sidebar state now in internal dict that is exactly
the same as the previous data structure.
* Do not access htis new structure directly
* Access snapins through user_config.snapins
* Modifications to snapins have dedicated methods now:
* add_snapin()
* move_snapin_before()
* set_snapin_visibility()
* For folding control use
* is_folded
* fold()
* unfold()
* Use config.user.load_file() for sidebar config
CMK-855
Change-Id: I269d547bdc33beadaadc22224c0601ac5a95c5cb
---
cmk/gui/sidebar.py | 222 ++++++++++++++++++++++++++---------------
tests/unit/web/test_sidebar.py | 205 ++++++++++++++++++++++++++++---------
2 files changed, 299 insertions(+), 128 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=2ad3ec7125…