jsonrpc: Document encoders/decoders arguments

This commit is contained in:
Stein Magnus Jodal 2012-11-22 15:31:03 +01:00
parent 61d6de2378
commit 29e2178a79

View File

@ -29,7 +29,12 @@ class JsonRpcWrapper(object):
For further details on the JSON-RPC 2.0 spec, see
http://www.jsonrpc.org/specification
:param objects: dict of names mapped to objects to be exposed
:param obj: object to be exposed
:param decoders: object builders to be used by :func`json.loads`
:type decoders: list of functions taking a dict and returning a dict
:param encoders: object serializers to be used by :func:`json.dumps`
:type encoders: list of :class:`json.JSONEncoder` subclasses with the
method :meth:`default` implemented
"""
def __init__(self, obj, decoders=None, encoders=None):