I've been working on a simple form submittal in Pyramid. I tried
Deform and Pyramid_Simpleform but I am using a lot of jQuery on the
form that I would like to keep.

Right now, I am using.
    params = request.params
    ...
    except formencode.Invalid, e:
        request.error = e.error_dict
        return HTTPFound(location = route_url('root', request))

This works, if I type in invalid fields it will reset the form... but
I want to display an error message on the form at the top with mako
templates, just '${error}'

What is the best way to do this? can I use HTTPFound? or is there an
easy way to rerender the form and pass the error value to it?

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to