#NEWLINE# def rpc_store( self , sender , keyword , key , value , ttl ) : #NEWLINE# #INDENT# self . addToRouter ( sender ) #NEWLINE# self . log . debug ( ( 'got a store request from %s, storing value' % str ( sender ) ) ) #NEWLINE# if ( ( len ( ttl ) == 20 ) and ( len ( key ) <= 33 ) and ( len ( value ) <= 2100 ) and ( int ( ttl ) <= 604800 ) ) : #NEWLINE# #INDENT# self . storage [ keyword ] = ( key , value , int ( ttl ) ) #NEWLINE# return [ 'True' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return [ 'False' ]