Example #1
0
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)
Example #2
0
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)
Example #3
0
def wsgiApp(environ, start_response):
    return wsgi(run_app, environ, start_response)
Example #4
0
def wsgiApp (environ, start_response):
    return wsgi(run_app, environ, start_response)