Module: check_mk
Branch: master
Commit: 6a36494e77f7fb34e81a940cb77cdea04c4521a1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6a36494e77f7fb…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Dec 11 08:48:41 2018 +0100
Use open_table() instead of manual begin()/end() pairs.
This is a totally mechanical change, best viewed with whitespace changes
suppressed. :-) This brings the diff down by an order of magnitude.
Note that there are still a handful of explicit begin()/end() calls: It is a
bit more tricky to get rid of them, and this will be done in a separate
(non-mechanical) change.
Change-Id: Iab730e0449c98122db11ca6c26c67f1c2ffc3285
---
cmk/gui/backup.py | 274 +++++++-------
cmk/gui/key_mgmt.py | 34 +-
cmk/gui/logwatch.py | 60 ++--
cmk/gui/notifications.py | 25 +-
cmk/gui/pagetypes.py | 122 ++++---
cmk/gui/plugins/dashboard/notify_users.py | 30 +-
cmk/gui/plugins/views/availability.py | 220 ++++++------
cmk/gui/plugins/views/layouts.py | 62 ++--
cmk/gui/plugins/wato/bi.py | 273 +++++++-------
cmk/gui/plugins/wato/utils/simple_modes.py | 10 +-
cmk/gui/table.py | 7 -
cmk/gui/visuals.py | 133 ++++---
cmk/gui/wato/mkeventd.py | 540 ++++++++++++++--------------
cmk/gui/wato/pages/activate_changes.py | 261 +++++++-------
cmk/gui/wato/pages/analyze_configuration.py | 20 +-
cmk/gui/wato/pages/audit_log.py | 22 +-
cmk/gui/wato/pages/bulk_import.py | 49 +--
cmk/gui/wato/pages/check_catalog.py | 25 +-
cmk/gui/wato/pages/custom_attributes.py | 30 +-
cmk/gui/wato/pages/folders.py | 291 +++++++--------
cmk/gui/wato/pages/groups.py | 9 +-
cmk/gui/wato/pages/host_tags.py | 183 +++++-----
cmk/gui/wato/pages/icons.py | 23 +-
cmk/gui/wato/pages/ldap.py | 115 +++---
cmk/gui/wato/pages/notifications.py | 500 +++++++++++++-------------
cmk/gui/wato/pages/pattern_editor.py | 143 ++++----
cmk/gui/wato/pages/roles.py | 121 ++++---
cmk/gui/wato/pages/services.py | 27 +-
cmk/gui/wato/pages/sites.py | 36 +-
cmk/gui/wato/pages/timeperiods.py | 21 +-
cmk/gui/wato/pages/users.py | 325 ++++++++---------
tests/unit/cmk/gui/test_table.py | 21 +-
32 files changed, 1993 insertions(+), 2019 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=6a36494e77…