svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant
Tue, 23 Oct 2018 16:19:20 +0200
changeset 2323 33a0dbabccd3
parent 728 e0424e96e3fd
permissions -rw-r--r--
Runtime : Ensure that a random PSK secret compatible with stunnel is generated if -s commandline switch is used. Stunnel service is restarted after generation, using spawn_subprocess. TODO : give stunnel restart command as a commandline parameter.
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