Can I expect JSON-RPC support to land in the near future?
I am working with John Boik on a tutorial extending the SQLAlchemy + URL
Dispatch Pyramid tutorial. We are adding a Pyjamas + PureMVC client that
will do some ajaxy stuff. Nothing too complex, presumably.
Since the easiest ajaxy stuff in Pyjamas needs JSON-RPC, and JSON-RPC is
not yet part of Pyramid, the current iteration of the tutorial uses a
solution I put together employing lovely.jsonrpc.
In the interest of simplicity for the tutorial, we would prefer to use a
native-to-Pyramid JSON-RPC implementation. My code using lovely.jsonrpc
works fine for the moment, so there is no real hurry.
Let me know if I can help.
- Jim Washington
There is already nascent support for JSON-RPC in the trunk of the
pyramid_rpc package (https://github.com/Pylons/pyramid_rpc ; clone the
package and see docs/jsonrpc.rst).
- C
Hi, Chris
"Nascent" is an interesting euphemism. I'd ask for help, but I think I
really want to figure out how it is supposed to work. :)
- Jim Washington
It's pretty good so far! How are permissions going to be handled? ATM, I
see that the @rpc_view() decorator attaches the particular view to every
route with view=jsonrpc_endpoint. Routes currently can have permission
requirements, but not individual views. So if I have a public route
(needed for e.g., login) all views become public if the client knows the
incantation.
- Jim Washington
Andrew