#NEWLINE# def _is_redirect_in_policy_rule_sets( self , context , policy_rule_sets ) : #NEWLINE# #INDENT# policy_rule_ids = [ ] #NEWLINE# for prs in context . _plugin . get_policy_rule_sets ( context . _plugin_context , filters = { #NEWLINE# #INDENT# 'id' : policy_rule_sets , #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# policy_rule_ids . extend ( prs [ 'policy_rules' ] ) #NEWLINE# #UNINDENT# for rule in context . _plugin . get_policy_rules ( context . _plugin_context , filters = { #NEWLINE# #INDENT# 'id' : policy_rule_sets , #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# redirect_actions = context . _plugin . get_policy_actions ( context . _plugin_context , filters = { #NEWLINE# #INDENT# 'id' : rule [ 'policy_actions' ] , #NEWLINE# 'action_type' : [ gconst . GP_ACTION_REDIRECT ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# if redirect_actions : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False