#NEWLINE# def addMessage( self , message ) : #NEWLINE# #INDENT# parent = self . getParent ( ) #NEWLINE# while ( not hasattr ( message , 'addMessage' ) ) : #NEWLINE# #INDENT# parent = parent . getParent ( ) #NEWLINE# #UNINDENT# parent . addMessage ( message )