comparison frontends/wix/contact_list.py @ 183:9ee4a1d0d7fb

Added auto(dis)connect params + misc - parameters,xmlui: "bool" type is now managed - parameters,xmlui: categories now use label in addition of name - QuickFrontend: auto(dis)connection management - plugin XEP-0045: an error dialog is now show in frontend if room cannot be joined - Wix: fixed unproper close event management
author Goffi <goffi@goffi.org>
date Wed, 18 Aug 2010 15:57:26 +0800
parents 2f8c86488b05
children 58f96e66ec17
comparison
equal deleted inserted replaced
182:556c2bd7c344 183:9ee4a1d0d7fb
117 self.Clear() 117 self.Clear()
118 118
119 def add(self, contact, groups = None): 119 def add(self, contact, groups = None):
120 """add a contact to the list""" 120 """add a contact to the list"""
121 debug (_("adding %s"),contact) 121 debug (_("adding %s"),contact)
122 #gof: groups = param_groups or self.CM.getAttr(jid, 'groups')
123 if not groups: 122 if not groups:
124 idx = self.Insert(self.__presentItem(contact), 0, contact) 123 idx = self.Insert(self.__presentItem(contact), 0, contact)
125 else: 124 else:
126 for group in groups: 125 for group in groups:
127 indexes = self.__find_idx(group) 126 indexes = self.__find_idx(group)