Module: check_mk
Branch: master
Commit: 1d18d5168ecd145b64b0291433f618bb46ffca1f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1d18d5168ecd14…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 30 23:59:57 2018 +0100
Refactored permission sections to plugin registry
* Permission are now registered in a dedicated module
cmk.gui.permissions
* The sections are now all based on the PermissionSection class
* They are registered to the permission_section_registry
* The previous config.declare_permission_section() call is
kept for compatibility with pre 1.6 GUI plugins
* Added tests to verify the previous behaviour
Change-Id: I0c113029a553365c3f20afb2e566203233ddc438
---
cmk/gui/config.py | 82 +-
cmk/gui/default_permissions.py | 21 +-
cmk/gui/mkeventd.py | 2 +
cmk/gui/pagetypes.py | 5 +-
cmk/gui/permissions.py | 152 ++
cmk/gui/plugins/views/commands.py | 2 +
cmk/gui/views.py | 2 -
cmk/gui/wato/mkeventd.py | 2 -
cmk/gui/wato/pages/roles.py | 77 +-
cmk/gui/watolib.py | 3 +-
cmk/plugin_registry.py | 3 +
tests/static/Makefile | 2 +-
tests/unit/cmk/gui/test_gui_config.py | 2531 +++++++++++++++++++++++++++++++++
13 files changed, 2779 insertions(+), 105 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=1d18d5168e…