On Mon, Jan 17, 2011 at 2:19 AM, Mike Burrows <[email protected]> wrote:
>
> Nice!
>
> When we've discussed validation here previously (you may recall that I
> took @validate to bits, allowed it to be used in ways other than as a
> decorator and added JSON support) I mentioned that one of the
> prerequisites would be agreement on idiomatic usage.  I do like to
> have available the "undecorated" style that allows for some logic flow
> when validation fails, and wouldn't miss the decorator at all if that
> went.  This looks nice, and much more complete than my solution.
>
> So will this (or something very much like it) get blessed as the way
> forward for Pyramid?

I'm inclined to make simpleforms the first recommendation, Deform
second (if I can get it to work when the page template is Mako), and
then examples of Formish, WTForms, FormAlchemy, and (if it's not too
big a task) ToscaWidgets.

>   And with JSON perhaps?

What do you want here? You can use the 'json' renderer to convert the
view return dict to JSON. Why would you want to JSONify the form data?

-- 
Mike Orr <[email protected]>

-- 
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.

Reply via email to