[OGo-XML-RPC] Pyhton 2.4
Adam Tauno Williams
xmlrpc@opengroupware.org
Wed, 10 May 2006 07:18:41 -0400
Anyone have an example of a Python->OGo XML-RPC call using a modern
Python 2.4?
I swear I had Python working, but it isn't anymore for whatever reason
(it went back to griping about the parameters to xmlrpclib.Server) and
there seems to little to no documentation on anything more current.
Grrrr....
scripts like -
http://bugzilla.opengroupware.org/bugzilla/attachment.cgi?id=410&action=view - no longer work.
If I edit the server call to be -
server = xmlrpclib.Server(sys.argv[1],sys.argv[2],sys.argv[3])
- then it fails with -
awilliam@aleph:~> ./loginChange.py http://localhost/RPC2 awilliam fred
Traceback (most recent call last):
File "./loginChange.py", line 5, in ?
account = server.account.getByLogin("nawrot")
File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.4/xmlrpclib.py", line 1379, in __request
response = self.__transport.request(
AttributeError: 'str' object has no attribute 'request'