Module: check_mk
Branch: master
Commit: fcd5ddb122ebce56bd71c6095ff48b2b16946076
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fcd5ddb122ebce…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Oct 2 15:17:55 2014 +0200
#1158 FIX Moved filter logic to visuals module
This change is kind of an internal code restucturing. So if you do not
understand this, you mostly do not need to care about it.
The filter logic, which was former part of the views, has been moved
to the visuals module to be available to all visuals types like
dashboards in the future.
If you have defined custom filter plugins for your views, which are
normally located below share/check_mk/web/plugins/views/*.py, you need
to move the filter definitions to share/check_mk/web/plugins/visuals/*.py.
---
.werks/1158 | 18 ++
ChangeLog | 2 +
mkeventd/web/plugins/views/mkeventd.py | 153 ----------------
mkeventd/web/plugins/visuals/mkeventd.py | 168 ++++++++++++++++++
web/htdocs/dashboard.py | 5 +-
web/htdocs/index.py | 2 +-
web/htdocs/pagefunctions.py | 47 -----
web/htdocs/valuespec.py | 94 ----------
web/htdocs/views.py | 200 +--------------------
web/htdocs/visuals.py | 270 ++++++++++++++++++++++++++++-
web/plugins/views/bi.py | 192 --------------------
web/plugins/views/inventory.py | 237 +------------------------
web/plugins/views/wato.py | 86 ---------
web/plugins/visuals/bi.py | 212 ++++++++++++++++++++++
web/plugins/{views => visuals}/filters.py | 28 ++-
web/plugins/visuals/inventory.py | 257 +++++++++++++++++++++++++++
web/plugins/visuals/wato.py | 114 ++++++++++++
17 files changed, 1073 insertions(+), 1012 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=fcd5ddb122…