#NEWLINE# @ log . log_method_call #NEWLINE# def update_policy_target( self , context , policy_target_id , policy_target ) : #NEWLINE# #INDENT# pt = policy_target [ 'policy_target' ] #NEWLINE# with context . session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# pt_db = self . _get_policy_target ( context , policy_target_id ) #NEWLINE# pt_db . update ( pt ) #NEWLINE# #UNINDENT# return self . _make_policy_target_dict ( pt_db )