svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant
Thu, 13 Jun 2019 15:49:48 +0200
changeset 2614 6b4061f6ced6
parent 728 e0424e96e3fd
permissions -rw-r--r--
'Change POU Type To' becomes 'Duplicate as...', avoiding side effects of type change when POU is already instanciated. Also remove leftover returType tag in ex-function POUs, triggering exceptions at build time.
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