#NEWLINE# def logout( self , user , ip ) : #NEWLINE# #INDENT# ( root , payload ) = self . _create_uidmessage ( ) #NEWLINE# logout = payload . find ( 'logout' ) #NEWLINE# if ( logout is None ) : #NEWLINE# #INDENT# logout = et . SubElement ( payload , 'logout' ) #NEWLINE# #UNINDENT# et . SubElement ( logout , 'entry' , { #NEWLINE# #INDENT# 'name' : user , #NEWLINE# 'ip' : ip , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . send ( root )