Exemple #1
0
 def __init__(self, app):
     if (not os.environ.has_key("DJANGO_SETTINGS_MODULE")):
         log.msg(u'DJANGO_SETTINGS_MODULE environment variable is not defined', logLevel=logging.WARN)
     else:
         log.msg(u'DJANGO_SETTINGS_MODULE = \'{}\''.format(os.environ.get("DJANGO_SETTINGS_MODULE")))
     wsgi_path = app.split('.')
     wsgi_module = import_module('.'.join(wsgi_path[:-1]))
     wsgi_app = getattr(wsgi_module, wsgi_path[-1])
     WSGIResource.__init__(self, reactor, reactor.getThreadPool(), wsgi_app)
Exemple #2
0
 def __init__(self, app):
     if (not os.environ.has_key("DJANGO_SETTINGS_MODULE")):
         log.msg(
             u'DJANGO_SETTINGS_MODULE environment variable is not defined',
             logLevel=logging.WARN)
     else:
         log.msg(u'DJANGO_SETTINGS_MODULE = \'{}\''.format(
             os.environ.get("DJANGO_SETTINGS_MODULE")))
     wsgi_path = app.split('.')
     wsgi_module = import_module('.'.join(wsgi_path[:-1]))
     wsgi_app = getattr(wsgi_module, wsgi_path[-1])
     WSGIResource.__init__(self, reactor, reactor.getThreadPool(), wsgi_app)
Exemple #3
0
 def __init__(self, reactor, threadpool, htpasswd, path):
     self.htpasswd = htpasswd
     self.path = path
     WSGIResource.__init__(self, reactor, threadpool,
                           self.middleware_auth(self.tracApplication))
Exemple #4
0
 def __init__(self, reactor, threadpool, htpasswd, path):
     self.htpasswd = htpasswd
     self.path = path
     WSGIResource.__init__(
         self, reactor, threadpool, self.middleware_auth(
             self.tracApplication))
 def __init__(self, reactor, threadpool, path):
     self.path = path
     WSGIResource.__init__(self, reactor, threadpool, self.tracApplication)
Exemple #6
0
 def __init__(self, reactor, threadpool, path):
     self.path = path
     WSGIResource.__init__(
         self, reactor, threadpool, self.tracApplication)