#NEWLINE# def agents_get( req_dict ) : #NEWLINE# #INDENT# a = Agent . objects . get ( ** req_dict [ 'agent_ifp' ] ) #NEWLINE# agent_data = json . dumps ( a . to_dict_person ( ) , sort_keys = False ) #NEWLINE# resp = HttpResponse ( agent_data , content_type = 'application/json' , status = 200 ) #NEWLINE# resp [ 'Content-Length' ] = str ( len ( agent_data ) ) #NEWLINE# if ( req_dict [ 'method' ] . lower ( ) != 'get' ) : #NEWLINE# #INDENT# resp . body = '' #NEWLINE# #UNINDENT# return resp