[one-users] XML-RPC API 2.0 host.delete return value

Łukasz Oleś lukaszoles at gmail.com
Tue Nov 23 15:53:59 PST 2010


Hi, 

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 
documentation:

"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 
ret=rpc.one.host.delete(1)
ret[1]
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?

Regards,
Łukasz Oleś



More information about the Users mailing list