#NEWLINE# def new( self , actor_type , args , deploy_args = None , state = None , prev_connections = None , connection_list = None ) : #NEWLINE# #INDENT# actor_id = self . am . new ( actor_type , args , state , prev_connections , connection_list , signature = ( deploy_args [ 'signature' ] if ( deploy_args and ( 'signature' in deploy_args ) ) else None ) , credentials = ( deploy_args [ 'credentials' ] if ( deploy_args and ( 'credentials' in deploy_args ) ) else None ) ) #NEWLINE# if deploy_args : #NEWLINE# #INDENT# app_id = deploy_args [ 'app_id' ] #NEWLINE# if ( 'app_name' not in deploy_args ) : #NEWLINE# #INDENT# app_name = deploy_args #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# app_name = deploy_args [ 'app_name' ] #NEWLINE# #UNINDENT# self . app_manager . add ( app_id , actor_id , deploy_info = ( deploy_args [ 'deploy_info' ] if ( 'deploy_info' in deploy_args ) else None ) ) #NEWLINE# #UNINDENT# return actor_id