def handle_index(environ, session): app = aConfig['gConfig']['wsgi']['application'] if session and 'username' in session: statuscode, mimetype, body = handle_static(aConfig, environ, aConfig['gConfig']['applications'][app]['static']['page']['indexpage']) else: statuscode, mimetype, body = handle_static(aConfig, environ, aConfig['gConfig']['applications'][app]['static']['page']['unauthorizedpage']) statuscode = 401 return statuscode, mimetype, body
def handle_index(environ, session): app = aConfig['gConfig']['wsgi']['application'] statuscode, mimetype, body = handle_static(aConfig, environ, aConfig['gConfig']['applications'][app]['static']['page']['indexpage']) return statuscode, mimetype, body
def handle_index(environ, session): statuscode, mimetype, body = handle_static( aConfig, environ, aConfig["gConfig"]["applications"][app]["static"]["page"]["indexpage"] ) return statuscode, mimetype, body