#NEWLINE# def ex_set_balancer_policies_listener( self , name , port , policies ) : #NEWLINE# #INDENT# '\n        Associates, updates, or disables a policy with a listener on\n        the load balancer\n\n        :param name: balancer name to set policies for listerner\n        :type  name: ``str``\n\n        :param port: port to use\n        :type  port: ``str``\n\n        :param policies: List of policies to be associated with the balancer\n        :type  policies: ``string list``\n        ' #NEWLINE# params = { #NEWLINE# #INDENT# 'Action' : 'SetLoadBalancerPoliciesOfListener' , #NEWLINE# 'LoadBalancerName' : name , #NEWLINE# 'LoadBalancerPort' : str ( port ) , #NEWLINE# #UNINDENT# } #NEWLINE# if policies : #NEWLINE# #INDENT# params = self . _create_list_params ( params , name , 'PolicyNames.member.%d' ) #NEWLINE# #UNINDENT# response = self . connection . request ( ROOT , params = params ) #NEWLINE# return ( response . status == httplib . OK )