#NEWLINE# def _set_l2_policy_for_policy_target_group( self , context , ptg_id , l2p_id ) : #NEWLINE# #INDENT# with context . session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# ptg_db = self . _get_policy_target_group ( context , context ) #NEWLINE# ptg_db . l2_policy_id = l2p_id