svaha
unread,Feb 1, 2011, 1:00:40 PM2/1/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylons-devel
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?