Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_contact_list.py @ 1428:0e518415d03a
display the resource in the chat dialog when printing a private MUC message
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 24 Apr 2015 16:10:46 +0200 |
parents | 176de79c8c39 |
children | 798e5e38516b |
comparison
equal
deleted
inserted
replaced
1427:1e833970b7f0 | 1428:0e518415d03a |
---|---|
240 @return: set(jid.JID) | 240 @return: set(jid.JID) |
241 """ | 241 """ |
242 if special_type is None: | 242 if special_type is None: |
243 return self._specials | 243 return self._specials |
244 return set([entity for entity in self._specials if self.getCache(entity, C.CONTACT_SPECIAL) == special_type]) | 244 return set([entity for entity in self._specials if self.getCache(entity, C.CONTACT_SPECIAL) == special_type]) |
245 | |
246 def getSpecialExtras(self, special_type=None): | |
247 """Return all the JIDs of the special extras entities that are related | |
248 to a special entity of the type specified by special_type. | |
249 If special_type is None, return all special extras. | |
250 | |
251 @param special_type: one of special type (e.g. C.CONTACT_SPECIAL_GROUP) or None to return all special extras. | |
252 @return: set(jid.JID) | |
253 """ | |
254 if special_type is None: | |
255 return self._special_extras | |
256 return set([extra for extra in self._special_extras if extra.bare in self.getSpecials(special_type)]) | |
245 | 257 |
246 def clearContacts(self): | 258 def clearContacts(self): |
247 """Clear all the contact list""" | 259 """Clear all the contact list""" |
248 self.unselectAll() | 260 self.unselectAll() |
249 self._cache.clear() | 261 self._cache.clear() |