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:
parent
6a1039a083
commit
b243054e9b
1 changed files with 36 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue