#NEWLINE# def __init__( self , config ) : #NEWLINE# #INDENT# self . config = config #NEWLINE# self . environ_template = { #NEWLINE# #INDENT# 'APPLICATION_ID' : config . app_id , #NEWLINE# 'CURRENT_VERSION_ID' : config . version_id , #NEWLINE# 'DATACENTER' : config . datacenter . encode ( 'ascii' ) , #NEWLINE# 'INSTANCE_ID' : config . instance_id . encode ( 'ascii' ) , #NEWLINE# 'APPENGINE_RUNTIME' : 'python27' , #NEWLINE# 'AUTH_DOMAIN' : config . auth_domain . encode ( 'ascii' ) , #NEWLINE# 'HTTPS' : 'off' , #NEWLINE# 'SCRIPT_NAME' : '' , #NEWLINE# 'SERVER_SOFTWARE' : http_runtime_constants . SERVER_SOFTWARE , #NEWLINE# 'TZ' : 'UTC' , #NEWLINE# 'wsgi.multithread' : config . threadsafe , #NEWLINE# 'MY_IP_ADDRESS' : os . environ [ 'MY_IP_ADDRESS' ] , #NEWLINE# 'NGINX_HOST' : os . environ [ 'NGINX_HOST' ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . _command_globals = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . environ_template . update ( ( ( env . key , env . value ) for env in config . environ ) )