Returning Fault instances in xmlrpc
Brian Quinlan
brian at sweetapp.com
Sun May 5 12:57:30 EDT 2002
> Yes, I see your point. But allowing them as return values seems a bit
> strange to me then. Why would you want to return a Fault object (which
> is specifically meant to represent an xmlrpc error) and have it
> converted to a mapping that does not cause any errors?
There is actually a case where you want this; if you are boxcaring
multiple XML-RPC requests for XML-RPC multicall then you have to
transmit Faults as structs inside a list.
> [snip]
> > I'm starting to suspect that you are being deliberately obtuse.
>
> Thanks. That's a nice way of discussing things.
Sorry, I was just getting frustrated.
> [snip]
> > Using obj.__dict__
>
> OK. In other words, this will not include default values inherited
> from the class etc. Fair enough -- but not thoroughly documented as
> far as I can see. (Yes, the code is there, I know.)
And sourceforge is open for patches 24/7 :-)
Cheers,
Brian
More information about the Python-list
mailing list