#NEWLINE# def Put( self , db , key , value , * args , **kwargs ) : #NEWLINE# #INDENT# '\n        Handles Put message command.\n        Executes a Put operation over the leveldb backend.\n\n        db      =>      LevelDB object\n        *args   =>      (key, value) to update\n\n        ' #NEWLINE# try : #NEWLINE# #INDENT# return success ( db . Put ( key , value ) ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# error_msg = ( 'Unsupported value type : %s' % type ( value ) ) #NEWLINE# errors_logger . exception ( error_msg ) #NEWLINE# return failure ( TYPE_ERROR , self )