svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant <edouard.tisserant@gmail.com>
Fri, 10 Sep 2021 14:48:07 +0200
branchwxPython4
changeset 3313 21d37b199ede
parent 728 e0424e96e3fd
permissions -rw-r--r--
Tests/svghmi_scrollbar: Fix variables names and remove useless "OnStart OnStop OnWatchdog" to use defaults.
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