comparison frontends/wix/contact_list.py @ 75:7322a41f8a8e

Basic user joined/left management - plugin XEP-0045: user joined./left signal is sended - wix: user are adder/removed when these signals are catched
author Goffi <goffi@goffi.org>
date Mon, 29 Mar 2010 16:54:53 +1100
parents f271fff3a713
children 961e0898271f
comparison
equal deleted inserted replaced
74:6e3a06b4dd36 75:7322a41f8a8e
135 135
136 def remove(self, contact): 136 def remove(self, contact):
137 """remove a contact from the list""" 137 """remove a contact from the list"""
138 debug (_("removing %s"), contact) 138 debug (_("removing %s"), contact)
139 list_idx = self.__find_idx(contact) 139 list_idx = self.__find_idx(contact)
140 list_idx.reverse() #we me make some deletions, we have to reverse the order 140 list_idx.reverse() #as we make some deletions, we have to reverse the order
141 for i in list_idx: 141 for i in list_idx:
142 self.Delete(i) 142 self.Delete(i)
143 143
144 def onSelected(self, event): 144 def onSelected(self, event):
145 """Called when a contact is selected.""" 145 """Called when a contact is selected."""