#NEWLINE# def queueLink( self , link ) : #NEWLINE# #INDENT# if ( 'links' not in self . message ) : #NEWLINE# #INDENT# self . message [ 'links' ] = [ ] #NEWLINE# #UNINDENT# link_message = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# link_message [ 'id' ] = link . key ( ) . id_or_name ( ) #NEWLINE# link_message [ 'url' ] = link . url #NEWLINE# link_message [ 'sender' ] = link . sender . address #NEWLINE# self . message [ 'links' ] . append ( link_message )