comparison libervia.py @ 349:f488692c4903

browser_side: LightTextEditor inheritates from BaseTextEditor + display URL in the status
author souliane <souliane@mailoo.org>
date Wed, 12 Feb 2014 14:58:11 +0100
parents b66028d21a1c
children f4efffb9627c
comparison
equal deleted inserted replaced
348:83454ba70a9c 349:f488692c4903
662 def _presenceUpdateCb(self, entity, show, priority, statuses): 662 def _presenceUpdateCb(self, entity, show, priority, statuses):
663 entity_jid = JID(entity) 663 entity_jid = JID(entity)
664 if self.whoami and self.whoami == entity_jid: # XXX: QnD way to get our presence/status 664 if self.whoami and self.whoami == entity_jid: # XXX: QnD way to get our presence/status
665 self.status_panel.setPresence(show) 665 self.status_panel.setPresence(show)
666 if statuses: 666 if statuses:
667 self.status_panel.changeStatus(statuses.values()[0]) 667 self.status_panel.setStatus(statuses.values()[0])
668 else: 668 else:
669 self.contact_panel.setConnected(entity_jid.bare, entity_jid.resource, show, priority, statuses) 669 self.contact_panel.setConnected(entity_jid.bare, entity_jid.resource, show, priority, statuses)
670 670
671 def _roomJoinedCb(self, room_jid, room_nicks, user_nick): 671 def _roomJoinedCb(self, room_jid, room_nicks, user_nick):
672 _target = JID(room_jid) 672 _target = JID(room_jid)