#NEWLINE# def __init__( self , msg_runner , ctxt , method_name , method_kwargs , direction , target_cell , **kwargs ) : #NEWLINE# #INDENT# super ( _TargetedMessage , self ) . __init__ ( msg_runner , ctxt , method_name , method_kwargs , direction , ** kwargs ) #NEWLINE# if isinstance ( target_cell , cells_state . CellState ) : #NEWLINE# #INDENT# if kwargs . is_me : #NEWLINE# #INDENT# target_cell = self . our_path_part #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# target_cell = ( '%s%s%s' % ( self . our_path_part , _PATH_CELL_SEP , target_cell . name ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( target_cell is None ) : #NEWLINE# #INDENT# reason = _ ( 'No cell given in routing path.' ) #NEWLINE# raise exception . CellRoutingInconsistency ( reason = reason ) #NEWLINE# #UNINDENT# self . target_cell = target_cell #NEWLINE# self . base_attrs_to_json . append ( 'target_cell' )