Module: check_mk
Branch: master
Commit: 5929dedb5f647d67dcddbc309a55b00e7f047180
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5929dedb5f647d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Aug 31 08:27:44 2018 +0200
Refactored dashlet plugin registering to new plugin registry
* All existing dashlets still use the old API
* Add compatibility layer (LegacyDashlet()) to be able to still work
with dashlets using the old dashlet API
* Add tests to verify LegacyDashlet() functionality
Change-Id: If90b4bc1b1dc346e989e0113f5c40cc28ff1e02d
---
cmk/gui/dashboard.py | 389 +++++++++++++++++++++-------------
cmk/gui/plugins/dashboard/__init__.py | 2 +
cmk/gui/plugins/dashboard/dashlets.py | 5 +-
cmk/gui/plugins/dashboard/utils.py | 267 ++++++++++++++++++++++-
tests/unit/web/test_dashboard.py | 155 ++++++++++++++
5 files changed, 670 insertions(+), 148 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=5929dedb5f…