xmlrpclib oddness
Eric Texier
erict at millfilm.co.uk
Fri Jul 19 10:51:30 EDT 2002
The only diff between the 2 following scripts are the test on the
return value of getConnection() which basically open a
xmlrpclib.ServerProxy
Any idea ??
Thanks
Eric
# dd is a dictionnary
server = self.getConnection()
if server != None:
server.SendTask(dd)
DUMPS:
File "/usr/people/erict/bin//lib/python2.2/xmlrpclib.py", line 763, in
dumps
data = m.dumps(params)
File "/usr/people/erict/bin//lib/python2.2/xmlrpclib.py", line 454, in
dumps
self.__dump(v)
File "/usr/people/erict/bin//lib/python2.2/xmlrpclib.py", line 465, in
__dump
raise TypeError, "cannot marshal %s objects" % type(value)
TypeError: cannot marshal <type 'NoneType'> objects
Where the following work fine:
server = self.getConnection()
server.SendTask(dd)
More information about the Python-list
mailing list