Wix: clicking on group in contact_list now (un)hide it.

Quick App: added a method to get all contacts in a group in contact_management
This commit is contained in:
Goffi 2010-01-10 17:25:43 +11:00
commit b243054e9b

View file

@ -42,7 +42,16 @@ class QuickContactManagement():
if entity.resource in self.__contactlist[entity.short]['resources']:
self.__contactlist[entity.short]['resources'].remove(entity.resource)
self.__contactlist[entity.short]['resources'].append(entity.resource)
def getContFromGroup(self, group):
"""Return all contacts which are in given group"""
result = []
for contact in self.__contactlist:
if self.__contactlist[contact].has_key('groups'):
if group in self.__contactlist[contact]['groups']:
result.append(JID(contact))
return result
def getAttr(self, entity, name):
"""Return a specific attribute of contact, or all attributes
@param entity: jid of the contact