Ian Bicking wrote: > Alan Kennedy wrote: > > Perhaps some pythonista from Web-SIG is most appropriate to advise > > how JSON-RPC should move forward? After all, we're more accustomed to > > server-side stuff than those javascript folks ;-) > > Let it die? It is more complicated than necessary, when instead you > could just make each function a URL of its own, and POST the arguments > and get back the response, with 500 Server Error for errors. It's hard > to spec that up because it's too simple.
Yup. We just built one of those at work, with the added bonus that a GET of the same URI returns an HTML form for submitting the right JSON in a POST. The HTML also shows function metadata (args and return type). A GET on the parent path returns a bunch of links to GET the children. Handy and almost RESTful if you squint and call each function a "resource". I'd still rather have real resources that align with application state, but it makes for a good transition strategy from existing RPC mechanisms. Robert Brewer [EMAIL PROTECTED] _______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com