freeipa/install/share/wsgi.py

16 lines
336 B
Python

"""
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