#NEWLINE# def __init__( self , domain , xmlns , app_id = None ) : #NEWLINE# #INDENT# self . domain = domain #NEWLINE# self . xmlns = xmlns #NEWLINE# if app_id : #NEWLINE# #INDENT# self . app_id = app_id #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# form = get_form_analytics_metadata ( domain , app_id , xmlns ) #NEWLINE# try : #NEWLINE# #INDENT# self . app_id = ( form [ 'app' ] [ 'id' ] if form else None ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# self . app_id = None