comparison frontends/primitivus/contact_list.py @ 184:8ea1510d474b

Primitivus: fixed contact list clear
author Goffi <goffi@goffi.org>
date Wed, 18 Aug 2010 16:07:38 +0800
parents a2655a0a4eac
children 879beacb8e16
comparison
equal deleted inserted replaced
183:9ee4a1d0d7fb 184:8ea1510d474b
131 131
132 def clear_contacts(self): 132 def clear_contacts(self):
133 """clear all the contact list""" 133 """clear all the contact list"""
134 self.groups={} 134 self.groups={}
135 self.selected = None 135 self.selected = None
136 self.unselectAll()
137 self.frame.body = self.__buildList()
138 self.host.redraw()
136 139
137 def replace(self, jid, groups=[None]): 140 def replace(self, jid, groups=[None]):
138 """add a contact to the list if doesn't exist, else update it""" 141 """add a contact to the list if doesn't exist, else update it"""
139 assert isinstance(groups, list) 142 assert isinstance(groups, list)
140 assert isinstance(jid, JID) 143 assert isinstance(jid, JID)