s4/web_server: PY3: port to python3
authorNoel Power <noel.power@suse.com>
Fri, 3 Aug 2018 16:55:09 +0000 (17:55 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 26 Sep 2018 23:54:27 +0000 (01:54 +0200)
commit2ea47f3e0f8c39a1c1bd651c7bd60b152f9b611c
tree1fb5f63fd26a88322e588b4cef82d9c29549677f
parentf71675dcbee6cef5b1c6972d1281feb37e8e70b0
s4/web_server: PY3: port to python3

Note: Unlike other libraries this library is been only built for the
configured python version. It depends on availability of 'swat' python
module.

The swat module is hosted externally, it seems not to have been modified
for a number of years, I don't think swat is python3 compatabile. These
changes are enough to get allow the samba binary to launch a web server
(which will just display a placeholder page announcing you need to install
swat). It maybe that removing this functionality is what we should do, but
that is a decision that can be made at a later time.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/web_server/__init__.py
source4/web_server/wsgi.c