#NEWLINE# def global_options( self , options = [ ] ) : #NEWLINE# #INDENT# assert ( type ( options ) == list ) #NEWLINE# global_options_command = Dict ( ) #NEWLINE# global_options_command . command = 'globaloptions' #NEWLINE# response = self . _client . call ( global_options_command ) #NEWLINE# status = response . get ( 'status' , None ) #NEWLINE# if ( status and ( status == 'ok' ) ) : #NEWLINE# #INDENT# if response . get ( 'options' , None ) : #NEWLINE# #INDENT# _options = literal_eval ( str ( response [ 'options' ] ) ) #NEWLINE# if options : #NEWLINE# #INDENT# selected_options = Dict ( ) #NEWLINE# for option in options : #NEWLINE# #INDENT# if ( option in ( 'endpoint' , 'pubsub_endpoint' , 'check_delay' , 'multicast_endpoint' ) ) : #NEWLINE# #INDENT# selected_options [ option ] = _options [ option ] #NEWLINE# #UNINDENT# #UNINDENT# return selected_options #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return _options #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# }