svgui/pyjs/jsonrpc/README.txt
author Sergey Surkov <surkovsv93@gmail.com>
Thu, 01 Dec 2016 16:40:49 +0300
changeset 1584 431f4ef34bde
parent 728 e0424e96e3fd
permissions -rw-r--r--
make only correct blocks(by IEC 61131-3 standard) available in wire popup menu in SFC Viewer
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