# HG changeset patch # User Goffi # Date 1423245730 -3600 # Node ID 447d28b1b4ec21b0ef52d9babc13534be20a8776 # Parent afc57b34c0a308e0376b112beb8ec8958ccd6319 quick frontends (QuickContactList): added isEntityInGroup method diff -r afc57b34c0a3 -r 447d28b1b4ec frontends/src/quick_frontend/quick_contact_list.py --- a/frontends/src/quick_frontend/quick_contact_list.py Fri Feb 06 19:01:06 2015 +0100 +++ b/frontends/src/quick_frontend/quick_contact_list.py Fri Feb 06 19:02:10 2015 +0100 @@ -263,6 +263,15 @@ return True return False + def isEntityInGroup(self, entity, group): + """Tell if an entity is in a roster group + + @param entity(jid.JID): jid of the entity + @param group(unicode): group to check + @return (bool): True if the entity is in the group + """ + return entity in self.getGroupData(group, "jids") + def remove(self, entity): """remove a contact from the list