#NEWLINE# def add_application( self , application , cb = None ) : #NEWLINE# #INDENT# '\n        Add application to storage\n        ' #NEWLINE# _log . debug ( ( 'Add application %s id %s' % ( application . name , application . id ) ) ) #NEWLINE# self . set ( prefix = 'application-' , key = application . id , value = { #NEWLINE# #INDENT# 'name' : application . name , #NEWLINE# 'ns' : application . ns , #NEWLINE# 'actors' : application . actors . keys ( ) , #NEWLINE# 'actors_name_map' : application . actors , #NEWLINE# 'origin_node_id' : self . origin_node_id , #NEWLINE# #UNINDENT# } , cb = cb )