comparison src/browser/libervia_main.py @ 699:be55a782a976

browser_side: change frontend method "setStatusOnline" for "setPresenceStatus"
author souliane <souliane@mailoo.org>
date Mon, 20 Apr 2015 17:10:38 +0200
parents b395d1309936
children b81816f42c81
comparison
equal deleted inserted replaced
698:f1271f769ffd 699:be55a782a976
398 398
399 def disconnectedHandler(self, profile): 399 def disconnectedHandler(self, profile):
400 QuickApp.disconnectedHandler(self, profile) 400 QuickApp.disconnectedHandler(self, profile)
401 Window.getLocation().reload() 401 Window.getLocation().reload()
402 402
403 def setStatusOnline(self, online=True, show='', statuses={}, profile=C.PROF_KEY_NONE): 403 def setPresenceStatus(self, show='', status=None, profile=C.PROF_KEY_NONE):
404 self.presence_status_panel.setPresence(show) 404 self.presence_status_panel.setPresence(show)
405 if statuses: 405 if status is not None:
406 # FIXME: retrieve user language status or fallback to 'default' 406 self.presence_status_panel.setStatus(status)
407 self.presence_status_panel.setStatus(statuses.values()[0])
408 407
409 def _tryAutoConnect(self, skip_validation=False): 408 def _tryAutoConnect(self, skip_validation=False):
410 """This method retrieve the eventual URL parameters to auto-connect the user. 409 """This method retrieve the eventual URL parameters to auto-connect the user.
411 @param skip_validation: if True, set the form values but do not validate it 410 @param skip_validation: if True, set the form values but do not validate it
412 """ 411 """