svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant <edouard.tisserant@gmail.com>
Mon, 25 Nov 2019 08:10:45 +0100
changeset 2643 b98d9e08231f
parent 728 e0424e96e3fd
permissions -rw-r--r--
Etherlab : Merged 2014-2018 changes from jblee and others
These classes are intended for use server-side.

e.g. in a django view.py :

    from pyjs.jsonrpc.django import JSONService, jsonremote

    jsonservice = JSONRPCService()

    @jsonremote(jsonservice)
    def test(request, echo_param):
         return "echoing the param back: %s" % echo_param