comparison src/browser/sat_browser/panels.py @ 573:12823bcbd05b

browser_side: display MUC occupants presences
author souliane <souliane@mailoo.org>
date Fri, 17 Oct 2014 13:26:33 +0200
parents ee9c7bd266ad
children b07f0fe2763a
comparison
equal deleted inserted replaced
572:7a823c6568e2 573:12823bcbd05b
1351 if self._state: 1351 if self._state:
1352 self.setTitle(self.target.bare + " (" + self._state + ")") 1352 self.setTitle(self.target.bare + " (" + self._state + ")")
1353 else: 1353 else:
1354 self.setTitle(self.target.bare) 1354 self.setTitle(self.target.bare)
1355 1355
1356 def setConnected(self, jid_s, resource, availability, priority, statuses):
1357 """Set connection status
1358 @param jid_s (str): JID userhost as unicode
1359 """
1360 assert(jid_s == self.target.bare)
1361 if self.type != 'group':
1362 return
1363 contact.setPresenceStyle(self.occupants_list.getOccupantBox(resource), availability)
1364
1356 1365
1357 class WebPanel(base_widget.LiberviaWidget): 1366 class WebPanel(base_widget.LiberviaWidget):
1358 """ (mini)browser like widget """ 1367 """ (mini)browser like widget """
1359 1368
1360 def __init__(self, host, url=None): 1369 def __init__(self, host, url=None):