Module: check_mk
Branch: master
Commit: 0407622bedcf53918771392595ffe14c92845c44
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0407622bedcf53…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Oct 5 15:49:25 2017 +0200
Refactored HW/SW Inventory: Use composite pattern for tree structure und visitor pattern
for tree rendering
Change-Id: I192b62e6e67c77d0b4a950ba1b769f575bbe98e2
---
cmk_base/checking.py | 1 -
cmk_base/inventory.py | 180 +-
lib/structured_data.py | 1050 +
tests/cmk/structured_data/test_structured_data.py | 628 +
tests/cmk/structured_data/tree_test_data/tree_a | 1 +
tests/cmk/structured_data/tree_test_data/tree_b | 1 +
.../tree_test_data/tree_new_addresses | 1 +
.../tree_new_addresses_arrays_memory | 1 +
.../structured_data/tree_test_data/tree_new_arrays | 1 +
.../structured_data/tree_test_data/tree_new_heute | 16652 ++++
.../tree_test_data/tree_new_interfaces | 6183 ++
.../tree_new_large_ora_tablespaces_fixed_len | 82514 +++++++++++++++++++
.../tree_new_large_ora_tablespaces_variable_len | 82508 ++++++++++++++++++
.../structured_data/tree_test_data/tree_new_memory | 1 +
.../tree_test_data/tree_old_addresses | 1 +
.../tree_old_addresses_arrays_memory | 1 +
.../structured_data/tree_test_data/tree_old_arrays | 1 +
.../structured_data/tree_test_data/tree_old_heute | 16653 ++++
.../tree_test_data/tree_old_interfaces | 6282 ++
.../tree_test_data/tree_old_large_ora_tablespaces | 82514 +++++++++++++++++++
.../structured_data/tree_test_data/tree_old_memory | 1 +
web/htdocs/inventory.py | 426 +-
web/htdocs/views.py | 28 +-
web/plugins/views/inventory.py | 667 +-
web/plugins/visuals/inventory.py | 12 +-
25 files changed, 295548 insertions(+), 760 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=0407622bed…