[one-users] XML-RPC API 2.0 host.delete return value
lukaszoles at gmail.com
Tue Nov 23 15:53:59 PST 2010
I'm working on Python bindings for XML-RPC Api and I found some
incompatibility between documentation and rpc server behavior.
When I'm running rpc.one.host.delete(1) it returns [True], but according to
"OUT Boolean true or false whenever is successful or not
OUT String if an error occurs this is error message, otherwise it is null."
it should return something like [True, None] and when I'm running this code
it raises IndexError Exception
I checked ruby implementation but in ruby when I'm accessing list outside
scope it returns nil and accidentally it works fine.
Is it bug or maybe I misunderstood documentation?
More information about the Users