Module: check_mk
Branch: master
Commit: 8d71b4089b89695f4ec4ef62e862d320409d2cf2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8d71b4089b8969…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 30 08:20:42 2018 +0100
Refactored main module registration to plugin registry
* The main module entries are now registered using the
cmk.gui.plugins.wato.utils.main_menu.main_module_registry.
* A main module entry is now represented by a class that implements
the MainModule() API
* The modules registered using register_modules() and the WatoModule()
class are still supported (at least for the next version) and are
migrated automatically to the new scheme
Change-Id: Id6802d4f7bf3b4fb6ff35308738b0ad66f09ddc6
Next: Refactor all shipped register_module() calls to the new mechanism.
---
cmk/gui/plugins/wato/__init__.py | 4 +-
cmk/gui/plugins/wato/background_job.py | 41 ++--
cmk/gui/plugins/wato/utils/__init__.py | 2 +
cmk/gui/plugins/wato/utils/main_menu.py | 117 +++++++++--
cmk/gui/wato/__init__.py | 3 +-
.../cmk/gui/plugins/wato/utils/test_main_menu.py | 229 +++++++++++++++++++++
6 files changed, 370 insertions(+), 26 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=8d71b4089b…