RpcResult: add a new payload field
authorIustin Pop <iustin@google.com>
Mon, 9 Feb 2009 09:24:21 +0000 (09:24 +0000)
committerIustin Pop <iustin@google.com>
Mon, 9 Feb 2009 09:24:21 +0000 (09:24 +0000)
commitf2def43abca8c7e2b80577309698668e7227ff98
tree02d11d67b06cd876dd84fa004fbdb5b7bb3cd5f8
parent4978db17e4cfaa257155a33bffc3e31fb4234a20
RpcResult: add a new payload field

For results which use the (status, payload) response type, it's easier
to define a ‘payload’ field on the result holding the payload than to
extract it using “data[1]” in the caller code.

Reviewed-by: ultrotter
lib/rpc.py