Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_app.py @ 1329:f8bd40509a2d frontends_multi_profiles
quick_frontend: add a 'presence' listener for the 'presenceUpdate' signal
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 22 Feb 2015 15:11:29 +0100 |
parents | 88e40f31b17e |
children | 7fa07c7b0761 |
comparison
equal
deleted
inserted
replaced
1328:7a3a232d4938 | 1329:f8bd40509a2d |
---|---|
461 # #FIXME: must be moved in a plugin | 461 # #FIXME: must be moved in a plugin |
462 # if entity.bare in self.profiles[profile].data.get('watched',[]) and not entity.bare in self.profiles[profile]['onlineContact']: | 462 # if entity.bare in self.profiles[profile].data.get('watched',[]) and not entity.bare in self.profiles[profile]['onlineContact']: |
463 # self.showAlert(_("Watched jid [%s] is connected !") % entity.bare) | 463 # self.showAlert(_("Watched jid [%s] is connected !") % entity.bare) |
464 | 464 |
465 self.contact_lists[profile].updatePresence(entity, show, priority, statuses) | 465 self.contact_lists[profile].updatePresence(entity, show, priority, statuses) |
466 self.callListeners('presence', entity, show, priority, statuses, profile) | |
466 | 467 |
467 def roomJoinedHandler(self, room_jid_s, room_nicks, user_nick, profile): | 468 def roomJoinedHandler(self, room_jid_s, room_nicks, user_nick, profile): |
468 """Called when a MUC room is joined""" | 469 """Called when a MUC room is joined""" |
469 log.debug("Room [%(room_jid)s] joined by %(profile)s, users presents:%(users)s" % {'room_jid': room_jid_s, 'profile': profile, 'users': room_nicks}) | 470 log.debug("Room [%(room_jid)s] joined by %(profile)s, users presents:%(users)s" % {'room_jid': room_jid_s, 'profile': profile, 'users': room_nicks}) |
470 room_jid = jid.JID(room_jid_s) | 471 room_jid = jid.JID(room_jid_s) |