#NEWLINE# def get( self , watcher , options = [ ] ) : #NEWLINE# #INDENT# assert ( type ( watcher ) == str ) #NEWLINE# assert ( ( type ( options ) == list ) and options ) #NEWLINE# get_command = Dict ( ) #NEWLINE# get_command . command = 'get' #NEWLINE# get_command . properties . name = watcher #NEWLINE# get_command . properties [ 'keys' ] = options #NEWLINE# response = self . _client . call ( get_command ) #NEWLINE# status = response . get ( 'status' , None ) #NEWLINE# if ( status and ( status == 'ok' ) ) : #NEWLINE# #INDENT# if response . get ( 'options' , None ) : #NEWLINE# #INDENT# return literal_eval ( str ( response [ 'options' ] ) ) #NEWLINE# #UNINDENT# #UNINDENT# return { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# }