changeset 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 f1271f769ffd
children b81816f42c81
files src/browser/libervia_main.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Mon Apr 20 09:52:22 2015 +0200
+++ b/src/browser/libervia_main.py	Mon Apr 20 17:10:38 2015 +0200
@@ -400,11 +400,10 @@
         QuickApp.disconnectedHandler(self, profile)
         Window.getLocation().reload()
 
-    def setStatusOnline(self, online=True, show='', statuses={}, profile=C.PROF_KEY_NONE):
+    def setPresenceStatus(self, show='', status=None, profile=C.PROF_KEY_NONE):
         self.presence_status_panel.setPresence(show)
-        if statuses:
-            # FIXME: retrieve user language status or fallback to 'default'
-            self.presence_status_panel.setStatus(statuses.values()[0])
+        if status is not None:
+            self.presence_status_panel.setStatus(status)
 
     def _tryAutoConnect(self, skip_validation=False):
         """This method retrieve the eventual URL parameters to auto-connect the user.