summaryrefslogtreecommitdiffstats
path: root/doc/guide/wsgi.py
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2011-11-22 17:04:03 +0200
committerAlexander Bokovoy <abokovoy@redhat.com>2011-11-22 17:04:03 +0200
commitbce3cd945c66e8e8dc49382356348745eefe8c59 (patch)
tree6052084c005dcdeb1403c389ecef912bab212406 /doc/guide/wsgi.py
parente9a9e2afdf84e15c6d3804fbeb566a5747c1ae5e (diff)
downloadfreeipa.git-bce3cd945c66e8e8dc49382356348745eefe8c59.tar.gz
freeipa.git-bce3cd945c66e8e8dc49382356348745eefe8c59.tar.xz
freeipa.git-bce3cd945c66e8e8dc49382356348745eefe8c59.zip
Rename included snippets to avoid problems with pylint
Diffstat (limited to 'doc/guide/wsgi.py')
-rw-r--r--doc/guide/wsgi.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/doc/guide/wsgi.py b/doc/guide/wsgi.py
deleted file mode 100644
index 2c4a9aaa..00000000
--- a/doc/guide/wsgi.py
+++ /dev/null
@@ -1,26 +0,0 @@
-from ipalib import api
-from ipalib.config import Env
-from ipalib.constants import DEFAULT_CONFIG
-
-# Determine what debug level is configured. We can only do this
-# by reading in the configuration file(s). The server always reads
-# default.conf and will also read in `context'.conf.
-env = Env()
-env._bootstrap(context='server', log=None)
-env._finalize_core(**dict(DEFAULT_CONFIG))
-
-# Initialize the API with the proper debug level
-api.bootstrap(context='server', debug=env.debug, log=None) (ref:wsgi-app-bootstrap)
-try:
- api.finalize() (ref:wsgi-app-finalize)
-except StandardError, e:
- api.log.error('Failed to start IPA: %s' % e)
-else:
- api.log.info('*** PROCESS START ***')
-
- # This is the WSGI callable:
- def application(environ, start_response): (ref:wsgi-app-start)
- if not environ['wsgi.multithread']:
- return api.Backend.session(environ, start_response)
- else:
- api.log.error("IPA does not work with the threaded MPM, use the pre-fork MPM") (ref:wsgi-app-end)