#NEWLINE# def activity_state_post( req_dict ) : #NEWLINE# #INDENT# agent = req_dict [ 'params' ] [ 'agent' ] #NEWLINE# a = Agent . objects . retrieve_or_create ( ** agent ) [ 0 ] #NEWLINE# actstate = ActivityStateManager ( actstate ) #NEWLINE# actstate . post_state ( req_dict ) #NEWLINE# return HttpResponse ( '' , status = 204 )