svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant
Wed, 13 Feb 2019 13:08:26 +0100
changeset 2488 889c43872f4c
parent 728 e0424e96e3fd
permissions -rw-r--r--
Fix startup of wxGlade base HMI. Wx calls were issued from non-wx thread (main).
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