#NEWLINE# def App( app_id , status = 'ok' , experiments = '' , updatecheck = None , ping = False , events = None , data_list = None ) : #NEWLINE# #INDENT# attrs = dict ( appid = app_id , status = status ) #NEWLINE# if experiments : #NEWLINE# #INDENT# attrs [ 'experiments' ] = experiments #NEWLINE# #UNINDENT# app = E . app ( attrs ) #NEWLINE# list ( map ( app . append , ( events or [ ] ) ) ) #NEWLINE# list ( map ( app . append , ( data_list or [ ] ) ) ) #NEWLINE# if ( updatecheck is not None ) : #NEWLINE# #INDENT# app . append ( updatecheck ) #NEWLINE# #UNINDENT# if ping : #NEWLINE# #INDENT# app . append ( Ping ( ) ) #NEWLINE# #UNINDENT# return app