#NEWLINE# def set( self , watcher , options = [ ] , waiting = False ) : #NEWLINE# #INDENT# assert ( type ( watcher ) == str ) #NEWLINE# assert ( type ( options ) == list ) #NEWLINE# assert ( type ( waiting ) == bool ) #NEWLINE# for option in options : #NEWLINE# #INDENT# assert ( type ( option ) == tuple ) #NEWLINE# #UNINDENT# set_command = Dict ( ) #NEWLINE# set_command . command = 'set' #NEWLINE# set_command . properties . name = watcher #NEWLINE# for option in options : #NEWLINE# #INDENT# set_command . properties . options [ option [ 0 ] ] = option [ 1 ] #NEWLINE# #UNINDENT# response = self . _client . call ( set_command ) #NEWLINE# response = response . get ( 'status' , None ) #NEWLINE# if ( response and ( response == 'ok' ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False