Module: check_mk
Branch: master
Commit: 9abec457324fb18232a4edbe709ebfe84e83e1f4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9abec457324fb1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sun Mar 25 18:46:33 2018 +0200
Make the GUI work as WSGI application
Some other cleanups and modifications have been made on the way:
* Move index file to dedicated app folder as recommended for WSGI apps
* Moved several things from htmllib.html to dedicated helper classes
http.Request -> HTTP request parsing (from WSGI env)
http.Response -> HTTP response processing (for WSGI)
htmllib.TimeoutManager -> Handle GUI task timeouts
htmllib.TransactionManager -> Mange GUI action transaction IDs
* Cleaned up several other things in the htmllib and parent classes
Change-Id: I6be1d5a90bfdc48c7a2d6e60c5b388f4c67310b1
---
.../check_mk/skel/etc/check_mk/apache.conf | 57 +-
.../mod_wsgi/skel/etc/apache/conf.d/01_wsgi.conf | 2 +-
omd/packages/omd/skel/etc/apache/conf.d/omd.conf | 6 +-
...utputFunnel.py => test_htmllib_OutputFunnel.py} | 43 +-
web/.f12 | 2 +-
web/app/index.wsgi | 289 +++++
web/htdocs/backup.py | 4 +-
web/htdocs/crash_reporting.py | 10 +-
web/htdocs/dashboard.py | 2 +-
web/htdocs/gui_exceptions.py | 32 +-
web/htdocs/html_mod_python.py | 335 ------
web/htdocs/htmllib.py | 1128 ++++++++++----------
web/htdocs/http.py | 448 ++++++++
web/htdocs/i18n.py | 6 +-
web/htdocs/index.py | 287 -----
web/htdocs/log.py | 2 +-
web/htdocs/login.py | 60 +-
web/htdocs/metrics.py | 2 +-
web/htdocs/mobile.py | 3 +-
web/htdocs/modules.py | 5 +-
web/htdocs/sidebar.py | 8 +-
web/htdocs/valuespec.py | 4 +-
web/htdocs/views.py | 6 +-
web/htdocs/visuals.py | 2 +-
web/htdocs/wato.py | 21 +-
web/htdocs/watolib.py | 4 +-
web/plugins/pages/guitester.py | 31 -
web/plugins/sidebar/shipped.py | 2 +-
web/plugins/views/availability.py | 4 +-
web/plugins/views/webservice.py | 2 +-
web/plugins/wato/ac_tests.py | 2 +-
web/plugins/wato/background_job.py | 2 +-
web/plugins/wato/mkeventd.py | 2 +-
web/plugins/wato/notifications.py | 2 +-
34 files changed, 1459 insertions(+), 1356 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=9abec45732…