svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant
Tue, 18 Jun 2019 14:09:23 +0200
changeset 2618 4eca95f91cba
parent 728 e0424e96e3fd
permissions -rw-r--r--
Merged workaround for loading bug happening after automatic resize of function blocks. It appears that some code in GraphicCommons.py loop endlessly when wires coordinate do not align with x or y axis. Those erroneous coordinate are now filtered out when loaded in the view.
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