svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sun, 05 Sep 2021 05:01:34 +0200
branchwxPython4
changeset 3304 3d736248ab3b
parent 728 e0424e96e3fd
permissions -rw-r--r--
Fix exception when canvas becomes null because of window resize, and avoid useless parameter+condition in GetLogicalDC
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