#NEWLINE# def logouts( self , users ) : #NEWLINE# #INDENT# 'Logout multiple users in the same API call\n        \n        Arguments:\n            users: a list of sets of user/ip mappings\n                   eg. [(user1, 10.0.1.1), (user2, 10.0.1.2)]\n        ' #NEWLINE# ( root , payload ) = self . _create_uidmessage ( ) #NEWLINE# logout = payload . find ( 'logout' ) #NEWLINE# if ( logout is None ) : #NEWLINE# #INDENT# logout = et . SubElement ( payload , 'logout' ) #NEWLINE# #UNINDENT# for user in users : #NEWLINE# #INDENT# et . SubElement ( logout , 'entry' , { #NEWLINE# #INDENT# 'name' : logout [ 0 ] , #NEWLINE# 'ip' : user [ 1 ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# self . send ( root )