#NEWLINE# def deploy( self ) : #NEWLINE# #INDENT# '\n        Instantiate actors and link them together.\n        ' #NEWLINE# if ( not self . deployable [ 'valid' ] ) : #NEWLINE# #INDENT# raise Exception ( 'Deploy information is not valid' ) #NEWLINE# #UNINDENT# self . sec . authenticate_principal ( ) #NEWLINE# unhandled = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( actor_name , info ) in self . deployable [ 'actors' ] . iteritems ( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . instantiate ( actor_name , info [ 'actor_type' ] , info [ 'args' ] , signature = info [ 'signature' ] ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# unhandled [ actor_name ] = info #NEWLINE# #UNINDENT# #UNINDENT# if unhandled : #NEWLINE# #INDENT# _log . analyze ( self . node . id , '+ UNHANDLED' , { #NEWLINE# #INDENT# 'unhandled' : unhandled , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . resolve_remote ( unhandled ) #NEWLINE# return #NEWLINE# #UNINDENT# self . _deploy_cont ( )