Module: check_mk
Branch: master
Commit: 37eda7d465931c0cdde1a4512145e9719959a243
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=37eda7d465931c…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Jan 9 16:20:04 2019 +0100
Access HTML variables via the request, not via html.
This fixes various TODOs.
Change-Id: I75a2f1dc2a00a4e31e9840f249ccd83d36babc1a
---
cmk/gui/backup.py | 20 ++---
cmk/gui/bi.py | 14 ++--
cmk/gui/crash_reporting.py | 20 ++---
cmk/gui/dashboard.py | 59 +++++++-------
cmk/gui/display_options.py | 10 +--
cmk/gui/forms.py | 8 +-
cmk/gui/gui_background_job.py | 14 ++--
cmk/gui/help.py | 2 +-
cmk/gui/htmllib.py | 84 ++++++++------------
cmk/gui/key_mgmt.py | 10 +--
cmk/gui/login.py | 16 ++--
cmk/gui/logwatch.py | 14 ++--
cmk/gui/metrics.py | 18 ++---
cmk/gui/mobile.py | 8 +-
cmk/gui/notifications.py | 4 +-
cmk/gui/pagetypes.py | 30 +++----
cmk/gui/plugins/dashboard/graph.py | 6 +-
cmk/gui/plugins/dashboard/stats.py | 4 +-
cmk/gui/plugins/dashboard/utils.py | 4 +-
cmk/gui/plugins/dashboard/view.py | 8 +-
cmk/gui/plugins/sidebar/bookmarks.py | 4 +-
cmk/gui/plugins/sidebar/master_control.py | 6 +-
cmk/gui/plugins/sidebar/quicksearch.py | 4 +-
cmk/gui/plugins/sidebar/site_status.py | 2 +-
cmk/gui/plugins/sidebar/speedometer.py | 6 +-
cmk/gui/plugins/sidebar/virtual_host_tree.py | 4 +-
cmk/gui/plugins/views/availability.py | 58 +++++++-------
cmk/gui/plugins/views/commands.py | 68 ++++++++--------
cmk/gui/plugins/views/icons/builtin.py | 8 +-
cmk/gui/plugins/views/inventory.py | 10 +--
cmk/gui/plugins/views/mkeventd.py | 18 ++---
cmk/gui/plugins/views/painters.py | 4 +-
cmk/gui/plugins/views/utils.py | 12 +--
cmk/gui/plugins/views/wato.py | 2 +-
cmk/gui/plugins/views/webservice.py | 4 +-
cmk/gui/plugins/visuals/filters.py | 88 +++++++++++----------
cmk/gui/plugins/visuals/inventory.py | 38 ++++-----
cmk/gui/plugins/visuals/utils.py | 14 ++--
cmk/gui/plugins/visuals/wato.py | 4 +-
cmk/gui/plugins/wato/background_job.py | 2 +-
cmk/gui/plugins/wato/bi.py | 46 +++++------
cmk/gui/plugins/wato/utils/__init__.py | 12 +--
cmk/gui/plugins/wato/utils/html_elements.py | 2 +-
cmk/gui/plugins/wato/utils/simple_modes.py | 6 +-
cmk/gui/prediction.py | 8 +-
cmk/gui/sidebar.py | 24 +++---
cmk/gui/sites.py | 2 +-
cmk/gui/table.py | 26 +++---
cmk/gui/valuespec.py | 91 ++++++++++-----------
cmk/gui/view_utils.py | 4 +-
cmk/gui/views.py | 94 +++++++++++-----------
cmk/gui/visuals.py | 58 +++++++-------
cmk/gui/wato/__init__.py | 10 +--
cmk/gui/wato/mkeventd.py | 68 ++++++++--------
cmk/gui/wato/pages/activate_changes.py | 9 ++-
cmk/gui/wato/pages/analyze_configuration.py | 20 ++---
cmk/gui/wato/pages/audit_log.py | 4 +-
cmk/gui/wato/pages/automation.py | 22 +++---
cmk/gui/wato/pages/backup.py | 2 +-
cmk/gui/wato/pages/bulk_discovery.py | 4 +-
cmk/gui/wato/pages/bulk_edit.py | 2 +-
cmk/gui/wato/pages/bulk_import.py | 30 +++----
cmk/gui/wato/pages/check_catalog.py | 2 +-
cmk/gui/wato/pages/custom_attributes.py | 12 +--
cmk/gui/wato/pages/folders.py | 63 +++++++--------
cmk/gui/wato/pages/global_settings.py | 12 +--
cmk/gui/wato/pages/groups.py | 10 +--
cmk/gui/wato/pages/host_diagnose.py | 12 +--
cmk/gui/wato/pages/host_rename.py | 2 +-
cmk/gui/wato/pages/host_tags.py | 18 ++---
cmk/gui/wato/pages/hosts.py | 24 +++---
cmk/gui/wato/pages/icons.py | 6 +-
cmk/gui/wato/pages/ldap.py | 16 ++--
cmk/gui/wato/pages/notifications.py | 34 ++++----
cmk/gui/wato/pages/parentscan.py | 18 ++---
cmk/gui/wato/pages/pattern_editor.py | 6 +-
cmk/gui/wato/pages/random_hosts.py | 6 +-
cmk/gui/wato/pages/roles.py | 14 ++--
cmk/gui/wato/pages/rulesets.py | 113 ++++++++++++++-------------
cmk/gui/wato/pages/services.py | 6 +-
cmk/gui/wato/pages/sites.py | 36 ++++-----
cmk/gui/wato/pages/timeperiods.py | 22 +++---
cmk/gui/wato/pages/users.py | 20 ++---
cmk/gui/wato/user_profile.py | 14 ++--
cmk/gui/watolib.py | 48 ++++++------
cmk/gui/webapi.py | 6 +-
cmk/gui/weblib.py | 18 ++---
cmk/gui/werks.py | 10 +--
doc/treasures/open_ticket.py | 4 +-
tests/unit/cmk/gui/old/html_tests.py | 2 +-
tests/unit/cmk/gui/test_http.py | 4 +-
tests/unit/cmk/gui/test_sidebar.py | 65 +++++----------
tests/unit/cmk/gui/test_table.py | 4 +-
web/app/index.wsgi | 8 +-
94 files changed, 926 insertions(+), 962 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=37eda7d465…