#NEWLINE# def _update( self , datapoints ) : #NEWLINE# #INDENT# '\n        This method store in the datapoints in the current database.\n\n            :datapoints: is a list of tupple with the epoch timestamp and value\n                 [(1368977629,10)]\n        ' #NEWLINE# if ( len ( datapoints ) == 1 ) : #NEWLINE# #INDENT# ( timestamp , value ) = datapoints [ 0 ] #NEWLINE# whisper . update ( self . path , value , datapoints ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# whisper . update_many ( self . path , datapoints )