changeset 843:83a40d786e7a

browser: use new style calls for getSignals
author Goffi <goffi@goffi.org>
date Fri, 15 Jan 2016 15:42:37 +0100
parents 3eb26b269539
children 2ef71ec07d87
files src/browser/libervia_main.py src/browser/sat_browser/json.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Thu Jan 14 23:34:31 2016 +0100
+++ b/src/browser/libervia_main.py	Fri Jan 15 15:42:37 2016 +0100
@@ -161,7 +161,7 @@
             self._versions["libervia"] = version
             gotVersion()
 
-        self.bridge.getVersion(callback=gotSat)
+        self.bridge.getVersion(callback=gotSat, profile=None)
         self.bridge.getLiberviaVersion(callback=gotLibervia, profile=None) # XXX: bridge direct call expect a profile, even for method with no profile needed
 
     def registerSignal(self, functionName, handler=None, iface="core", with_profile=True):
@@ -349,7 +349,7 @@
         self.panel.addPresenceStatusPanel(self.presence_status_panel)
         self.panel.tab_panel.getTabBar().setVisible(True)
 
-        self.bridge_signals.call('getSignals', self.bridge_signals.signalHandler)
+        self.bridge_signals.getSignals(callback=self.bridge_signals.signalHandler, profile=None)
 
         def domain_cb(value):
             self._defaultDomain = value
--- a/src/browser/sat_browser/json.py	Thu Jan 14 23:34:31 2016 +0100
+++ b/src/browser/sat_browser/json.py	Fri Jan 15 15:42:37 2016 +0100
@@ -231,7 +231,7 @@
         else:
             def _timerCb(timer):
                 log.info("Trying to reconnect to server...")
-                self.getSignals(callback=self.signalHandler)
+                self.getSignals(callback=self.signalHandler, profile=None)
             # TODO: display a notification to user
             log.warning(u"Lost connection, trying to reconnect in {} s".format(self.retry_delay / 1000))
             Timer(notify=_timerCb).schedule(self.retry_delay)
@@ -251,7 +251,7 @@
             self._signals[name] = (callback, with_profile)
 
     def signalHandler(self,  signal_data):
-        self.getSignals(callback=self.signalHandler)
+        self.getSignals(callback=self.signalHandler, profile=None)
         if len(signal_data) == 1:
             signal_data.append([])
         log.debug(u"Got signal ==> name: %s, params: %s" % (signal_data[0], signal_data[1]))