type(xmlrpclib.Fault.faultCode)...
Magnus Lie Hetland
mlh at vier.idi.ntnu.no
Fri May 10 13:35:33 EDT 2002
In article <mailman.1021048939.1954.python-list at python.org>, Brian
Quinlan wrote:
>
[snip]
>The XML-RPC specification says:
>
>The <methodResponse> could also contain a <fault> which contains a
><value> which is a <struct> containing two elements, one named
><faultCode>, an <int> and one named <faultString>, a <string>.
>
>So I would say that there is a documentation (and perhaps
>implementation) bug for xmlrpclib.
At least documentation. The ints were returned correctly from
SimpleXMLRPCServer. The documentation say:
faultCode: A string indicating the fault type.
I guess this is plain wrong, then.
[snip]
>> If not, is there any interest in a patch that would allow this? Are
>> there any suggested workarounds? Am I missing something?
>
>Yeah, I suck.
Surely not ;)
>I've already submitted patches to clean my mess though.
>You might want to use the SimpleXMLRPCServer.py found here:
>http://www.sweetapp.com/xmlrpc/
>
>It is the integration of all the proposed 2.3 patches.
Thanks for the tip. The new implementation looks like just what I want
wrt. Faults here :)
>Cheers,
>Brian
--
Magnus Lie Hetland The Anygui Project
http://hetland.org http://anygui.org
More information about the Python-list
mailing list