Philipp Hörist pushed to branch master at gajim / gajim


Commits:
ee7be59e by Philipp Hörist at 2020-01-23T19:25:09+01:00
Use new StanzaHandler callback signature

- - - - -
f1ce7ccb by Philipp Hörist at 2020-01-23T19:26:50+01:00
MAM: Fix pylint error

- - - - -


2 changed files:

- gajim/common/modules/bytestream.py
- gajim/common/modules/mam.py


Changes:

=====================================
gajim/common/modules/bytestream.py
=====================================
@@ -548,7 +548,7 @@ class Bytestream(BaseModule):
         iq.setID(auth_id)
         self._con.connection.send(iq)
 
-    def _on_bytestream_error(self, _con, iq_obj):
+    def _on_bytestream_error(self, _con, iq_obj, _properties):
         id_ = iq_obj.getAttr('id')
         frm = helpers.get_full_jid_from_iq(iq_obj)
         query = iq_obj.getTag('query')
@@ -567,7 +567,7 @@ class Bytestream(BaseModule):
                          error_msg=''))
         raise nbxmpp.NodeProcessed
 
-    def _on_bytestream_set(self, con, iq_obj):
+    def _on_bytestream_set(self, con, iq_obj, _properties):
         target = iq_obj.getAttr('to')
         id_ = iq_obj.getAttr('id')
         query = iq_obj.getTag('query')
@@ -625,7 +625,7 @@ class Bytestream(BaseModule):
                 _connection_error)
         raise nbxmpp.NodeProcessed
 
-    def _on_result(self, _con, iq_obj):
+    def _on_result(self, _con, iq_obj, _properties):
         # if we want to respect xep-0065 we have to check for proxy
         # activation result in any result iq
         real_id = iq_obj.getAttr('id')
@@ -643,7 +643,7 @@ class Bytestream(BaseModule):
                     app.socks5queue.activate_proxy(host['idx'])
                     raise nbxmpp.NodeProcessed
 
-    def _on_bytestream_result(self, con, iq_obj):
+    def _on_bytestream_result(self, con, iq_obj, _properties):
         frm = self._ft_get_from(iq_obj)
         real_id = iq_obj.getAttr('id')
         query = iq_obj.getTag('query')


=====================================
gajim/common/modules/mam.py
=====================================
@@ -402,7 +402,8 @@ class MAM(BaseModule):
                                            'start_date': start_date,
                                            'groupchat': groupchat})
 
-    def _result_finished(self, _nbxmpp_client, stanza, query_id, start_date, 
groupchat):
+    def _result_finished(self, _nbxmpp_client, stanza, query_id,
+                         start_date, groupchat):
         try:
             fin, set_ = self._parse_iq(stanza)
         except InvalidMamIQ:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/compare/141bb011fa9c06eb64253eb13d88f867caa7cc3c...f1ce7ccb45ddcd078b7c02c5a2693cec7fa2076c

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/compare/141bb011fa9c06eb64253eb13d88f867caa7cc3c...f1ce7ccb45ddcd078b7c02c5a2693cec7fa2076c
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to