#NEWLINE# def RenderObject( self , hunt , args ) : #NEWLINE# #INDENT# runner = hunt . GetRunner ( ) #NEWLINE# context = runner . context #NEWLINE# untyped_summary_part = dict ( state = hunt . Get ( hunt . Schema . STATE ) , hunt_name = context . args . hunt_name , create_time = rendered_object . create_time , expires = context . expires , client_limit = context . args . client_limit , client_rate = context . args . client_rate , creator = context . creator , description = context . args . description ) #NEWLINE# typed_summary_part = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if args . with_full_summary : #NEWLINE# #INDENT# ( all_clients_count , completed_clients_count , _ ) = hunt . GetClientsCounts ( ) #NEWLINE# untyped_summary_part . update ( dict ( stats = context . usage_stats , all_clients_count = all_clients_count , completed_clients_count = completed_clients_count , outstanding_clients_count = ( all_clients_count - completed_clients_count ) ) ) #NEWLINE# typed_summary_part = dict ( regex_rules = ( runner . args . regex_rules or [ ] ) , integer_rules = ( runner . args . integer_rules or [ ] ) , args = hunt . state . args ) #NEWLINE# try : #NEWLINE# #INDENT# typed_summary_part [ 'client_rule_set' ] = runner . args . client_rule_set #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# typed_summary_part [ 'client_rule_set' ] = [ ] #NEWLINE# #UNINDENT# #UNINDENT# for ( k , v ) in untyped_summary_part . items ( ) : #NEWLINE# #INDENT# untyped_summary_part [ k ] = api_value_renderers . RenderValue ( v ) #NEWLINE# #UNINDENT# for ( k , v ) in typed_summary_part . items ( ) : #NEWLINE# #INDENT# typed_summary_part [ k ] = api_value_renderers . RenderValue ( v ) #NEWLINE# #UNINDENT# rendered_object = { #NEWLINE# #INDENT# 'summary' : dict ( ( untyped_summary_part . items ( ) + typed_summary_part . items ( ) ) ) , #NEWLINE# #UNINDENT# } #NEWLINE# return rendered_object