Exemplo n.º 1
0
def main():
    path = timings.start_run()
    application = webapp.WSGIApplication(ROUTES, debug=config.DEBUG)
    if users.is_current_user_admin():
        application = FirePythonWSGI(application)
    wsgiref.handlers.CGIHandler().run(application)
    timings.stop_run(path)
Exemplo n.º 2
0
def main():
    path = timings.start_run()
    application = webapp.WSGIApplication(ROUTES, debug=config.DEBUG)
    if users.is_current_user_admin():
        application = FirePythonWSGI(application)
    wsgiref.handlers.CGIHandler().run(application)
    timings.stop_run(path)
Exemplo n.º 3
0
Arquivo: main.py Projeto: smn/bloog
def main():
    path = timings.start_run()
    application = webapp.WSGIApplication(ROUTES, debug=config.DEBUG)
    if users.is_current_user_admin():
        application = FirePythonWSGI(application)
    # Attempt to fix KeyError: 'CONTENT_TYPE' that is appearing in logs; see:
    # http://code.google.com/p/googleappengine/issues/detail?id=2040
    # wsgiref.handlers.CGIHandler().run(application)
    run_wsgi_app(application)
    timings.stop_run(path)
Exemplo n.º 4
0
Arquivo: main.py Projeto: mloar/bloog
def main():
    path = timings.start_run()
    application = webapp.WSGIApplication(ROUTES, debug=config.DEBUG)
    wsgiref.handlers.CGIHandler().run(application)
    timings.stop_run(path)
Exemplo n.º 5
0
def main():
    path = timings.start_run()
    application.run()
    timings.stop_run(path)
Exemplo n.º 6
0
def main():
    path = timings.start_run()
    application.run()
    timings.stop_run(path)