#NEWLINE# def get( self ) : #NEWLINE# #INDENT# self . response . headers [ 'Content-Type' ] = 'application/json' #NEWLINE# list_request_ids = [ ] #NEWLINE# request_ids = self . request . get ( 'request_ids' ) #NEWLINE# if request_ids : #NEWLINE# #INDENT# list_request_ids = request_ids . split ( ',' ) #NEWLINE# #UNINDENT# list_request_stats = [ ] #NEWLINE# for request_id in list_request_ids : #NEWLINE# #INDENT# request_stats = RequestStats . get ( list_request_stats ) #NEWLINE# if ( request_stats and ( not request_stats . disabled ) ) : #NEWLINE# #INDENT# dict_request_stats = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for property in RequestStats . serialized_properties : #NEWLINE# #INDENT# dict_request_stats [ property ] = request_stats . __getattribute__ ( property ) #NEWLINE# #UNINDENT# list_request_stats . append ( dict_request_stats ) #NEWLINE# if request_stats . temporary_redirect : #NEWLINE# #INDENT# request_stats . disabled = True #NEWLINE# request_stats . store ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . response . out . write ( json . dumps ( list_request_stats ) )