summaryrefslogtreecommitdiffstats
path: root/install/share/wsgi.py
blob: e1c2c7332db95d920e33d4ee175ad10747528e18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""
WSGI appliction for IPA server.
"""

from ipalib import api
api.bootstrap(context='server', debug=True, log=None)
try:
    api.finalize()
except StandardError, e:
    api.log.error('Failed to start IPA: %s' % e)
else:
    api.log.info('*** PROCESS START ***')
    import ipawebui
    ui = ipawebui.create_wsgi_app(api)

    # This is the WSGI callable:
    application = api.Backend.session