Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

pyjamaswithwebopjsonrpc

root edited this page · 1 revision
  1. How to do JSONRPC with WebOp

http://pythonpaste.org/webob/jsonrpc-example.html

an illustration of how you can do JSONRPC with WebOp, such that a pyjamas application will be able to talk to it. what's particularly good about this code is that the exact same code looks like it can be used for command-line test purposes as well as being run server-side (as a wsgi script).

comparing the code to http://pyjamas-dev.googlegroups.com/web/jsonrpc.py for example, which is incredibly similar (but is only server-side) the disadvantage of the webop illustrated example appears to be that you are forced to declare a class containing the jsonrpc service operations. with the jsonrpc.py example shown on pyjamas-dev, you can add the decorator to a global function _or_ you can add the decorator to a function in a class.

(thanks to jim washington for finding this)

Something went wrong with that request. Please try again.