Pylons is a great web framework that I have been working with for the past five or six months developing the new version of fotoglif in. There are lots of great things about the framework that I can rave about, but the interesting one for this post is that they include an XMLRPCController base class that you can use to create an XML-RPC service with. However, it doesn’t have a JSONRPCController.
So I started putting one together last night.
I then got to thinking that I should probably create a setuptools command to compile the UI code before creating a distribution package. Of course then I’d need to create a paster template to setup a pylons project with the custom command… and perhaps lay down some initial directories where I can store my UI code. Then it began to dawn on me.
I could write my next web application as if I were writing for the desktop.
So we have to take it for what it is. AJAX-based interfaces are not going to go away and as demand for ever-more-complex interfaces rises on the web, we need tools that can help us reduce the overall complexity of delivering them. I think Pyjamas shows promise and like GWT, is a step in the right direction… a first little baby step. Yet you can’t stop progress and the compilers will get better. New solutions will be dreamed up.
For now, my next step will be to finish wrinkling out the bugs in this JSONRPCController class and submit it to the pylons crew for review. Then I can start messing around with integrating pyjamas into my next project and seeing how well the JSON-RPC support works. Updates will follow in the next few days…