예제 #1
0
 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
예제 #2
0
파일: pi.py 프로젝트: kamijawa/pi_server
 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
예제 #3
0
 def handle_index(environ, session):
     statuscode, mimetype, body = handle_static(
         aConfig, environ, aConfig["gConfig"]["applications"][app]["static"]["page"]["indexpage"]
     )
     return statuscode, mimetype, body