# HG changeset patch # User Goffi # Date 1554663327 -7200 # Node ID c7c52c0dc13aaf9dda84a6f03ee2bcdd2c244c24 # Parent 7c8773723200529118184203800c45099a8ae0bc core, quick_frontend(app): fixed connected signal handling diff -r 7c8773723200 -r c7c52c0dc13a sat/bridge/bridge_constructor/bridge_template.ini --- a/sat/bridge/bridge_constructor/bridge_template.ini Sun Apr 07 18:50:13 2019 +0200 +++ b/sat/bridge/bridge_constructor/bridge_template.ini Sun Apr 07 20:55:27 2019 +0200 @@ -10,8 +10,8 @@ category=core sig_in=ss doc=Connection is done -doc_param_0=%(doc_profile)s -doc_param_1=jid_s: the JID that we were assigned by the server, as the resource might differ from the JID we asked for. +doc_param_0=jid_s: the JID that we were assigned by the server, as the resource might differ from the JID we asked for. +doc_param_1=%(doc_profile)s [disconnected] type=signal diff -r 7c8773723200 -r c7c52c0dc13a sat/bridge/dbus_bridge.py --- a/sat/bridge/dbus_bridge.py Sun Apr 07 18:50:13 2019 +0200 +++ b/sat/bridge/dbus_bridge.py Sun Apr 07 20:55:27 2019 +0200 @@ -140,7 +140,7 @@ @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, signature='ss') - def connected(self, profile, jid_s): + def connected(self, jid_s, profile): pass @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, @@ -698,8 +698,8 @@ def actionNew(self, action_data, id, security_limit, profile): self.dbus_bridge.actionNew(action_data, id, security_limit, profile) - def connected(self, profile, jid_s): - self.dbus_bridge.connected(profile, jid_s) + def connected(self, jid_s, profile): + self.dbus_bridge.connected(jid_s, profile) def contactDeleted(self, entity_jid, profile): self.dbus_bridge.contactDeleted(entity_jid, profile) diff -r 7c8773723200 -r c7c52c0dc13a sat/bridge/pb.py --- a/sat/bridge/pb.py Sun Apr 07 18:50:13 2019 +0200 +++ b/sat/bridge/pb.py Sun Apr 07 20:55:27 2019 +0200 @@ -141,8 +141,8 @@ def actionNew(self, action_data, id, security_limit, profile): self.sendSignal("actionNew", action_data, id, security_limit, profile) - def connected(self, profile, jid_s): - self.sendSignal("connected", profile, jid_s) + def connected(self, jid_s, profile): + self.sendSignal("connected", jid_s, profile) def contactDeleted(self, entity_jid, profile): self.sendSignal("contactDeleted", entity_jid, profile) diff -r 7c8773723200 -r c7c52c0dc13a sat/core/xmpp.py --- a/sat/core/xmpp.py Sun Apr 07 18:50:13 2019 +0200 +++ b/sat/core/xmpp.py Sun Apr 07 20:55:27 2019 +0200 @@ -259,10 +259,8 @@ self._connected_d.addCallback(self._disconnectionCb) self._connected_d.addErrback(self._disconnectionEb) - self.host_app.bridge.connected( - self.profile, unicode(self.jid) - ) # we send the signal to the clients - + # we send the signal to the clients + self.host_app.bridge.connected(self.jid.full(), self.profile) self.disco = SatDiscoProtocol(self) self.disco.setHandlerParent(self) diff -r 7c8773723200 -r c7c52c0dc13a sat_frontends/quick_frontend/quick_app.py --- a/sat_frontends/quick_frontend/quick_app.py Sun Apr 07 18:50:13 2019 +0200 +++ b/sat_frontends/quick_frontend/quick_app.py Sun Apr 07 20:55:27 2019 +0200 @@ -682,7 +682,7 @@ # bridge signals hanlers - def connectedHandler(self, profile, jid_s): + def connectedHandler(self, jid_s, profile): """Called when the connection is made. @param jid_s (unicode): the JID that we were assigned by the server,