Mercurial > libervia-web
comparison src/browser/libervia_main.py @ 655:048401e5c506 frontends_multi_profiles
browser_side: implements setStatusOnline since it is not used only for setting the connected state on/off, but also to update the user presence and status
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 27 Feb 2015 02:41:11 +0100 |
parents | 40c72f3b7638 |
children | 0b7e4226378d |
comparison
equal
deleted
inserted
replaced
654:40c72f3b7638 | 655:048401e5c506 |
---|---|
383 | 383 |
384 def disconnectedHandler(self, profile): | 384 def disconnectedHandler(self, profile): |
385 QuickApp.disconnectedHandler(self, profile) | 385 QuickApp.disconnectedHandler(self, profile) |
386 Window.getLocation().reload() | 386 Window.getLocation().reload() |
387 | 387 |
388 def setStatusOnline(self, online=True, show="", statuses={}, profile=C.PROF_KEY_NONE): | 388 def setStatusOnline(self, online=True, show='', statuses={}, profile=C.PROF_KEY_NONE): |
389 log.warning("setStatusOnline is not implemented, as session are for unique profile which is always online for now") | 389 self.presence_status_panel.setPresence(show) |
390 if statuses: | |
391 # FIXME: retrieve user language status or fallback to 'default' | |
392 self.presence_status_panel.setStatus(statuses.values()[0]) | |
390 | 393 |
391 def _tryAutoConnect(self, skip_validation=False): | 394 def _tryAutoConnect(self, skip_validation=False): |
392 """This method retrieve the eventual URL parameters to auto-connect the user. | 395 """This method retrieve the eventual URL parameters to auto-connect the user. |
393 @param skip_validation: if True, set the form values but do not validate it | 396 @param skip_validation: if True, set the form values but do not validate it |
394 """ | 397 """ |