#NEWLINE# def sendEdit( self , editType , content = None ) : #NEWLINE# #INDENT# '\n        Send an edit event to the peer.\n\n        @param editType: C{str} edit type (see above)\n        @param content: C{Array} contents of the edit (None-able)\n        ' #NEWLINE# status_bar . heartbeat_message ( ( 'sharing with %s' % self . str ( ) ) ) #NEWLINE# self . logger . debug ( ( 'sending edit: %s %s' % ( base . numeric_to_symbolic [ editType ] , content ) ) ) #NEWLINE# if ( ( editType == base . EDIT_TYPE_INSERT ) or ( content == base . EDIT_TYPE_INSERT_SNIPPET ) or ( editType == base . EDIT_TYPE_PASTE ) ) : #NEWLINE# #INDENT# self . sendMessage ( base . EDIT , editType , payload = content ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . sendMessage ( base . EDIT , editType )