def wsgi_app(environ, start_response): global theServer, lastRead last = 0 for cfg in cfgfiles: try: cfgTime = os.stat(cfg)[8] if cfgTime > last: last = cfgTime except: pass if not theServer or last > lastRead: cfgs = cfgfiles theServer = Server.load(*cfgs) lastRead = time.time() return wsgi(theServer.dispatchRequest, environ, start_response)
def wsgi_app_workspace(environ, start_response): global theServer, lastRead last = 0 for cfg in cfgfiles: try: cfgTime = os.stat(cfg)[8] if cfgTime > last: last = cfgTime except: pass if not theServer or last > lastRead: cfgs = cfgfiles theServer = Server.load(*cfgs) lastRead = time.time() return wsgi(theServer.dispatchWorkspaceRequest, environ, start_response)
def wsgiApp(environ, start_response): return wsgi(run_app, environ, start_response)
def wsgiApp (environ, start_response): return wsgi(run_app, environ, start_response)