#NEWLINE# def __init__( self , appinfo_external , appinfo_config ) : #NEWLINE# #INDENT# 'Parse app.yaml file and extract valid handlers.' #NEWLINE# self . appinfo_external = appinfo_external #NEWLINE# self . threadsafe = appinfo_external . threadsafe #NEWLINE# self . handlers = [ ( x . url , _NormalizedScript ( x . script ) , ( x . login == appinfo . LOGIN_OPTIONAL ) , x ) for x in appinfo_external . handlers ] #NEWLINE# logging . info ( 'Parsed handlers: %s' , [ ( x [ 0 ] , x [ 1 ] ) for x in self . handlers ] ) #NEWLINE# sys . path [ : ] = FixDjangoPath ( appinfo_external . libraries , sys . path ) #NEWLINE# self . user_env_variables = ( appinfo_external . env_variables or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . l7_unsafe_redirect_url = ( 'https://%s-dot-%s-dot-%s' % ( appinfo_config . major_version , appinfo_config . module , appinfo_config . appengine_hostname ) ) #NEWLINE# self . is_last_successful = False #NEWLINE# self . is_last_successful_time = None #NEWLINE# if ( ( self . appinfo_external . vm_health_check is None ) or ( self . appinfo_external . vm_health_check . check_interval_sec is None ) ) : #NEWLINE# #INDENT# self . check_interval_sec = DEFAULT_HEALTH_CHECK_INTERVAL_SEC #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# vm_health_check = self . appinfo_external . vm_health_check #NEWLINE# self . check_interval_sec = appinfo_config . check_interval_sec