--- nfo/projects/netfraggle/libs/xmlrpclib.py 2004/08/30 13:57:22 1.2 +++ nfo/projects/netfraggle/libs/xmlrpclib.py 2004/08/30 16:54:29 1.3 @@ -1,6 +1,6 @@ # # XML-RPC CLIENT LIBRARY -# $Id: xmlrpclib.py,v 1.2 2004/08/30 13:57:22 joko Exp $ +# $Id: xmlrpclib.py,v 1.3 2004/08/30 16:54:29 joko Exp $ # # an XML-RPC client interface for Python. # @@ -983,7 +983,7 @@ def __getattr__(self, name): return _Method(self.__send, "%s.%s" % (self.__name, name)) def __call__(self, *args): - return self.__send(self.__name, args) + return self.__send(self.__name, *args) ## # Standard transport class for XML-RPC over HTTP. @@ -1023,7 +1023,6 @@ self.send_user_agent(h) self.send_content(h, request_body) - #errcode, errmsg, headers = h.getreply() response = h.getresponse() if response.status != 200: @@ -1041,7 +1040,6 @@ import __main__ __main__.phpsessionid = response.getheader('Set-Cookie') - #print self.phpsessionid #return self._parse_response(h.getfile(), sock) return self._parse_response(response, None) @@ -1064,7 +1062,6 @@ def make_connection(self, host): # create a HTTP connection object from a host descriptor import httplib - #return httplib.HTTP(host) return httplib.HTTPConnection(host) ## @@ -1094,9 +1091,7 @@ def send_php_sessionid(self, connection): import __main__ - print "send: " + str(__main__.phpsessionid) connection.putheader("Cookie", str(__main__.phpsessionid)) - #pass ##