svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant
Tue, 02 Feb 2021 11:17:03 +0100
branchsvghmi
changeset 3122 229795c03e11
parent 728 e0424e96e3fd
permissions -rw-r--r--
SVGHMI: make a copy of tests/svghmi as test/svghmi_widget because too crowded since having pages for widget documentation. Strip those pages from tests/svghmi, so that it
is more light for regular testing.
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