Module: check_mk
Branch: master
Commit: 2dccf77234dd0adad58e7f1d268e37511cdb150d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2dccf77234dd0a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 29 17:33:07 2019 +0100
Cleaned up host attribute topic handling
* Topics are now represented by a dedicated class which
has an internal identifier, title and sort index.
* The previous implementation only had a title attribute
which made it dificult to handle localization and sorting
of the topics.
* Host attributes now directly hold a reference to their
host attribute topic object instead of relying on a
collection structure (_host_attributes)
More to come...
CMK-1588
Change-Id: I1952b6dc3e860e14915cc8b5bb37996027b1c58d
---
cmk/gui/plugins/wato/utils/__init__.py | 19 +--
cmk/gui/watolib/host_attributes.py | 182 +++++++++++++++++++--
tests/unit/cmk/gui/watolib/test_host_attributes.py | 93 +++++++++--
tests/unit/cmk/gui/watolib/test_watolib.py | 71 --------
4 files changed, 244 insertions(+), 121 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=2dccf77234…