summaryrefslogtreecommitdiffstats
path: root/install/share/wsgi.py
blob: f6b99a2dcb704535da4d038aef2646224b4adc07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""
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 ***')

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