[Python-Dev] Re: xmlrpclib + proxy support followup
Fredrik Lundh
fredrik@pythonware.com
Thu, 5 Dec 2002 18:23:56 +0100
bill wrote:
> However, I need a sixth method -- get_reply().
>
> I patched the Transport class in xmlrpclib as such:
>
> def request(self, host, handler, request_body, verbose=0):
> # issue XML-RPC request
> ....
> errcode, errmsg, headers = self.get_reply(h)
>
> ....
>
> def get_reply(self, connection):
> return connection.getReply()
>
> This would seem to be a trivial change to the existing xmlrpclib that
> greatly increases the ability to modify its behavior via subclassing,
> etc...
+1
(and feel free to add self.get_file(h) too, if you need that).
</F>