As the title states, I am looking for something, that will help me automate form processing (validation/rendering/etc) in twisted.web. I am also looking for a suitable templating toolkit to use with it.
As for templating, it is not so much of an issue as there are a lot of libraries in python, that do it. I was considering the following:
- Nevow. Well, it is not only a templating toolkit, but a lot of other things that I may or may not need. It also plays nice with twisted's asynchronous nature (as far as I know, you can do incremental rendering with it, whether that is good or bad)
- Jinja2. I haven't used it yet, but people seem to recommend it a lot. I've read about it and it seems to be a decent toolkit.
- Genshi. same as the previous one
- Django's templating engine. I've used it quite a lot. There are some drawbacks, but, well, it works. This is not a django project, so there is no need to restrict myself to django's components, though.
- Hell, I can theoretically generate xhtml using xslt (but I won't :P), since almost all the data the project deals with is xml
As for form processing, I must say, that the only python web framework I am familiar with is django (quite familiar with it, actually) so I don't really know what I should be considering here.
I know nevow has some kind of form processing built-in, apparently (called formless), but I have no idea how good it is and I haven't found any documentation (besides the source) or usage examples (besides the completely trivial one in the turorial).
The other option I was considering is "bolting on" django's forms, since the forms are not really coupled to anything else in django, so it is possible to use them separately. I'd rather not do it, though, if it is at all possible.
Maybe someone with an existing twisted.web project can give me a hint or two.