svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant
Fri, 22 Jan 2021 11:30:37 +0100
branchsvghmi
changeset 3116 6da94ec04325
parent 728 e0424e96e3fd
permissions -rw-r--r--
SVGHMI: i18n: finished passing back translated messaged to xslt proc, finished template to generate corresponding javascript literals.
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