Re: Fun with forms
"Matt Feifarek" <[email protected]> Mon, 28 Jan 2008 12:24:13 -0500
| Newsgroups | gmane.comp.python.webware |
|---|---|
| Message-ID | <[email protected]> |
On Jan 20, 2008 8:33 PM, Ian Bicking <[email protected]> wrote: > The option no one seems to consider, but which I continue to advocate, > is using FormEncode with htmlfill and ad hoc templates to generate the > actual HTML forms (because once you take out the value filling, error > filling, and validation, it's easy to generate HTML forms). > Yeah, your position on that is well-known ;-) It's a philosophy I agree with, but my practical needs trumped philosophy, and I was hoping that ToscaWidgets would make my life easier. Doh. I tried pure formencode for a project, but what I ended up with was a giant if-elseif-else tree in every single controller action. And crazy complicated conditional logic in every single template. I guess I never figured out how to get htmlfill to work; the docs[1] made it sound fishy, and it seemed just too "magic" for me. I didn't like the idea of leaving markers in the template for errors. I guess I should try again. P.S. I am sick of this problem. Forms suck. I'd submit that people who "don't like the web" in your earlier blog post probably just really don't like html forms. [1] http://wiki.pylonshq.com/display/pylonsdocs/Form+Handling ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Webware-discuss mailing list Webware-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/webware-discuss