Example #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)
Example #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)
Example #3
0
File: main.py Project: 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)
Example #4
0
File: main.py Project: mloar/bloog
def main():
    path = timings.start_run()
    application = webapp.WSGIApplication(ROUTES, debug=config.DEBUG)
    wsgiref.handlers.CGIHandler().run(application)
    timings.stop_run(path)
Example #5
0
def main():
    path = timings.start_run()
    application.run()
    timings.stop_run(path)
Example #6
0
def main():
    path = timings.start_run()
    application.run()
    timings.stop_run(path)