svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant <edouard.tisserant@gmail.com>
Mon, 02 Nov 2020 10:56:09 +0100
branchsvghmi
changeset 3070 013374b6cdb9
parent 728 e0424e96e3fd
permissions -rw-r--r--
Allow customization of generated py_ext OnChange calls, by adding a static method to PythonFileCTNMixin that can the be later hot patched.
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