#NEWLINE# def add_actor( self , actor ) : #NEWLINE# #INDENT# 'Add an actor when a new one is connected.' #NEWLINE# if _debug : #NEWLINE# #INDENT# TCPClientDirector . _debug ( 'add_actor %r' , actor ) #NEWLINE# #UNINDENT# self . clients [ actor . peer ] = actor #NEWLINE# if actor . serviceElement : #NEWLINE# #INDENT# self . sap_request ( addPeer = actor . peer )