Re: Athena and Forms
Manlio Perillo <[email protected]> Fri, 09 Mar 2007 21:27:01 +0100
| Newsgroups | gmane.comp.python.quotient.dev |
|---|---|
| Message-ID | <[email protected]> |
AJ Ostergaard ha scritto: > Hello, > > I am about to embark on building a new web application and have the > unusual luxury of choosing my tech stack from scratch. Have been playing > with Nevow for a few weeks and am slowly coming to grips with the whole > Twisted/Nevow interfaces and deferreds thing. :) > > The application I am building will require the responsiveness of AJAX > and happily Athena fills that gap nicely. However I will also need good > forms support and while formless looks good I'd prefer to use more > client side validation and definitely want to keep all user visible text > on the display/design end of things so that the web designers and > content editors have easy access to it. > If you want full control on form generation, you can give a look at nform http://developer.berlios.de/projects/nforms/ I have just released the first public release. When I find some time, I will add full comments, better tests (the form rendering is untested) and better examples (now there is one big example). nforms is based on W3C XForms standard. It allows a clear separation of the form definition (the model) and the form generation (the view). The view module is very flexible and reusable, since all the code must be written by the user; the module is just an integrator for the user defined model and the HTML code. The current version uses data directives, but it should be not too hard to write an alternate implementation that only uses renderer, slots and patterns. If you want to use Athena for validation on the client side, you have to write some code, but, again, this should be not too hard. If you are interested, I can try to add an example. Regards Manlio Perillo