From 22468cdbf9c5448b20c4c098aad58fdce9886a81 Mon Sep 17 00:00:00 2001 From: jortel Date: Wed, 12 May 2010 16:00:22 +0000 Subject: Pass Plugin.onSend() the soap envelope root Element instead of the Document. --- suds/__init__.py | 2 +- suds/client.py | 2 +- suds/plugin.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/suds/__init__.py b/suds/__init__.py index 3799470..c919937 100644 --- a/suds/__init__.py +++ b/suds/__init__.py @@ -27,7 +27,7 @@ import sys # __version__ = '0.4' -__build__="(beta) R681-20100511" +__build__="(beta) R684-20100512" # # Exceptions diff --git a/suds/client.py b/suds/client.py index 0516046..d492fff 100644 --- a/suds/client.py +++ b/suds/client.py @@ -624,7 +624,7 @@ class SoapClient: try: self.last_sent(Document(msg)) plugins = PluginContainer(self.options.plugins) - plugins.onSend(envelope=msg) + plugins.onSend(envelope=msg.root()) request = Request(location, str(msg)) request.headers = self.headers() reply = transport.send(request) diff --git a/suds/plugin.py b/suds/plugin.py index 5172565..bc8071f 100644 --- a/suds/plugin.py +++ b/suds/plugin.py @@ -53,7 +53,7 @@ class LoadContext(Context): class SendContext(Context): """ The context for sending the soap envelope. - @ivar envelope: The soap envelope to be sent. + @ivar envelope: The soap envelope I{root} element to be sent. @type envelope: L{sax.Element} """ pass -- cgit v1.2.1