svgui/pyjs/jsonrpc/README.txt
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 09 Sep 2016 17:53:32 +0300
changeset 1524 70fc5688741e
parent 728 e0424e96e3fd
permissions -rw-r--r--
fix non-working logging at first connection to PLC after Beremiz launch

At the same time this helps to avoid exception described in 1484:d5efbb20927e.
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