svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant
Thu, 31 Jan 2019 14:10:06 +0100
changeset 2485 ef327451d067
parent 728 e0424e96e3fd
permissions -rw-r--r--
Add a debugger token to SetTraceVariables and GetTraceVariables to prevent crash an inconsistant data in case of multiple connections. Last connection now takes over existing connections's debug, and first connected IDE gets a wrning.
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