#NEWLINE# @ log . log_method_call #NEWLINE# def update_policy_rule_set( self , context , policy_rule_set_id , policy_rule_set ) : #NEWLINE# #INDENT# prs = policy_rule_set [ 'policy_rule_set' ] #NEWLINE# with context . session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# prs_db = self . _get_policy_rule_set ( context , policy_rule_set_id ) #NEWLINE# if ( 'policy_rules' in prs ) : #NEWLINE# #INDENT# self . _set_rules_for_policy_rule_set ( context , prs_db , prs [ 'policy_rules' ] ) #NEWLINE# del prs [ 'policy_rules' ] #NEWLINE# #UNINDENT# if ( 'child_policy_rule_sets' in policy_rule_set ) : #NEWLINE# #INDENT# self . _set_children_for_policy_rule_set ( context , prs_db , prs [ 'child_policy_rule_sets' ] ) #NEWLINE# del prs [ 'child_policy_rule_sets' ] #NEWLINE# #UNINDENT# prs_db . update ( prs ) #NEWLINE# #UNINDENT# return self . _make_policy_rule_set_dict ( prs_db )