Dalius Dobravolskas wrote:
>> 2. In simple / naive usage mode it requires mixing HTML and code, which
> That's not the case. Not sure there you get that from.
Oops, I wasn't clear on this issue: formencode.htmlfill does provide
some basic form manipulation, but in the form I don't like very much,
example from docs:
>>> from formencode import htmlfill
>>> form = '<input type="text" name="fname">'
>>> defaults = {'fname': 'Joe'}
>>> htmlfill.render(form, defaults)
'<input type="text" name="fname" value="Joe">'
Unless values of 'form' and 'defaults' vars are acquired from a place
different than controller code (from template? database?), this is
mixing view and controller. That's what I meant to mean.
>> 3. I don't mean to be ungrateful towards Ian or smth, but I find
>> FormEncode's documentation to be rather limited to tell the truth.
> I don't know. I usually read the code. More fun and both I learn more.
>
> OK. Let's focus on form validation. Some samples from my code:
Thanks for the example, it's smth to chew on.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---