Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-suds for openSUSE:Factory checked in at 2022-10-12 18:24:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-suds (Old) and /work/SRC/openSUSE:Factory/.python-suds.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-suds" Wed Oct 12 18:24:23 2022 rev:2 rq:1009832 version:1.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-suds/python-suds.changes 2022-06-04 23:27:35.860789887 +0200 +++ /work/SRC/openSUSE:Factory/.python-suds.new.2275/python-suds.changes 2022-10-12 18:25:51.905840393 +0200 @@ -1,0 +2,6 @@ +Tue Oct 11 15:36:35 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- Update to version 1.1.2 + * Restore last_sent and last_received functions + +------------------------------------------------------------------- Old: ---- suds-1.1.1.tar.gz New: ---- suds-1.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-suds.spec ++++++ --- /var/tmp/diff_new_pack.7ChTFG/_old 2022-10-12 18:25:54.397846619 +0200 +++ /var/tmp/diff_new_pack.7ChTFG/_new 2022-10-12 18:25:54.401846629 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global skip_python2 1 Name: python-suds -Version: 1.1.1 +Version: 1.1.2 Release: 0 Summary: Lightweight SOAP client License: LGPL-3.0-or-later ++++++ suds-1.1.1.tar.gz -> suds-1.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suds-1.1.1/PKG-INFO new/suds-1.1.2/PKG-INFO --- old/suds-1.1.1/PKG-INFO 2022-05-02 21:39:15.673945200 +0200 +++ new/suds-1.1.2/PKG-INFO 2022-06-28 04:42:20.176001800 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: suds -Version: 1.1.1 +Version: 1.1.2 Summary: Lightweight SOAP client (community fork) Home-page: https://github.com/suds-community/suds Author: Jeff Ortel @@ -8,7 +8,7 @@ Maintainer: Jurko Gospodneti?? Maintainer-email: jurko.gospodne...@pke.hr License: (specified using classifiers) -Download-URL: https://github.com/suds-community/suds/archive/release-1.1.1.tar.gz +Download-URL: https://github.com/suds-community/suds/archive/release-1.1.2.tar.gz Keywords: SOAP,web,service,client Platform: (specified using classifiers) Classifier: Development Status :: 5 - Production/Stable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suds-1.1.1/suds/client.py new/suds-1.1.2/suds/client.py --- old/suds-1.1.1/suds/client.py 2022-05-02 21:38:52.000000000 +0200 +++ new/suds-1.1.2/suds/client.py 2022-06-28 04:42:09.000000000 +0200 @@ -58,6 +58,8 @@ @type factory: L{Factory} @ivar sd: The service definition @type sd: L{ServiceDefinition} + @ivar messages: The last sent/received messages. + @type messages: str[2] """ @@ -126,6 +128,7 @@ for s in self.wsdl.services: sd = ServiceDefinition(self.wsdl, s) self.sd.append(sd) + self.messages = dict(tx=None, rx=None) def set_options(self, **kwargs): """ @@ -160,6 +163,22 @@ if mapped[1] != uri: raise Exception('"%s" already mapped as "%s"' % (prefix, mapped)) + def last_sent(self): + """ + Get last sent I{soap} message. + @return: The last sent I{soap} message. + @rtype: L{Document} + """ + return self.messages.get('tx') + + def last_received(self): + """ + Get last received I{soap} message. + @return: The last received I{soap} message. + @rtype: L{Document} + """ + return self.messages.get('rx') + def clone(self): """ Get a shallow clone of this object. @@ -183,6 +202,7 @@ clone.factory = self.factory clone.service = ServiceSelector(clone, self.wsdl.services) clone.sd = self.sd + clone.messages = dict(tx=None, rx=None) return clone def __unicode__(self): @@ -731,6 +751,7 @@ """ location = self.__location() log.debug("sending to (%s)\nmessage:\n%s", location, soapenv) + self.last_sent(soapenv) plugins = PluginContainer(self.options.plugins) plugins.message.marshalled(envelope=soapenv.root()) if self.options.prettyxml: @@ -806,6 +827,8 @@ replyroot = None if status in (http.client.OK, http.client.INTERNAL_SERVER_ERROR): replyroot = _parse(reply) + if len(reply) > 0: + self.last_received(replyroot) plugins.message.parsed(reply=replyroot) fault = self.__get_fault(replyroot) if fault: @@ -874,6 +897,46 @@ """Returns the SOAP request's target location URL.""" return Unskin(self.options).get("location", self.method.location) + def last_sent(self, d=None): + """ + Get or set last SOAP sent messages document + + To get the last sent document call the function without parameter. + To set the last sent message, pass the document as parameter. + + @param d: A SOAP reply dict message key + @type string: I{bytes} + @return: The last sent I{soap} message. + @rtype: L{Document} + + """ + key = 'tx' + messages = self.client.messages + if d is None: + return messages.get(key) + else: + messages[key] = d + + def last_received(self, d=None): + """ + Get or set last SOAP received messages document + + To get the last received document call the function without parameter. + To set the last sent message, pass the document as parameter. + + @param d: A SOAP reply dict message key + @type string: I{bytes} + @return: The last received I{soap} message. + @rtype: L{Document} + + """ + key = 'rx' + messages = self.client.messages + if d is None: + return messages.get(key) + else: + messages[key] = d + class _SimClient(_SoapClient): """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suds-1.1.1/suds/version.py new/suds-1.1.2/suds/version.py --- old/suds-1.1.1/suds/version.py 2022-05-02 21:38:52.000000000 +0200 +++ new/suds-1.1.2/suds/version.py 2022-06-28 04:42:09.000000000 +0200 @@ -22,5 +22,5 @@ """ -__version__ = "1.1.1" +__version__ = "1.1.2" __build__ = "" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suds-1.1.1/suds.egg-info/PKG-INFO new/suds-1.1.2/suds.egg-info/PKG-INFO --- old/suds-1.1.1/suds.egg-info/PKG-INFO 2022-05-02 21:39:15.000000000 +0200 +++ new/suds-1.1.2/suds.egg-info/PKG-INFO 2022-06-28 04:42:20.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: suds -Version: 1.1.1 +Version: 1.1.2 Summary: Lightweight SOAP client (community fork) Home-page: https://github.com/suds-community/suds Author: Jeff Ortel @@ -8,7 +8,7 @@ Maintainer: Jurko Gospodneti?? Maintainer-email: jurko.gospodne...@pke.hr License: (specified using classifiers) -Download-URL: https://github.com/suds-community/suds/archive/release-1.1.1.tar.gz +Download-URL: https://github.com/suds-community/suds/archive/release-1.1.2.tar.gz Keywords: SOAP,web,service,client Platform: (specified using classifiers) Classifier: Development Status :: 5 - Production/Stable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suds-1.1.1/tests/test_client.py new/suds-1.1.2/tests/test_client.py --- old/suds-1.1.1/tests/test_client.py 2022-05-02 21:38:53.000000000 +0200 +++ new/suds-1.1.2/tests/test_client.py 2022-06-28 04:42:09.000000000 +0200 @@ -665,6 +665,8 @@ assert b(xsd_target_namespace) in request_message assert b(test_input_data) in request_message assert reply == test_output_data + assert client.messages.get("rx") == client.last_received() + assert client.messages.get("tx") == client.last_sent() @pytest.mark.parametrize("transport", (object(), suds.cache.NoCache())) def test_reject_invalid_transport_class(self, transport, monkeypatch):