Hi folks, might be thinking about this all wrong, question re bgf
In the case of a post updating a model from a form, and the update is
done, I want to redirect to my 'view' view so as to prevent multiple
submissions. In the docs I can see how to do a redirect with a specied
url, but it seems
what are folks using to make forms and validation schemas with bfg? I am
a big fan of formencode, but not sure how best to use it in the bfg
context. I'm curious whether one can use zope form generation easily
with formencode?
thanks
iain
___
I think what your first question boils down to is how to I make a view
redirect
to itself. The answer is usually:
from repoze.bfg.url import model_url
url = model_url(context, request, request.view_name)
As far as examples about form handling, the sample apps at
I've seen people use (or at least report using):
- ToscaWidgets
- formish
I've personally used ToscaWidgets on at least one bfg customer project,
although
we wound up removing it later in favor of just using ZPT macros.
- C
On 6/27/09 3:47 PM, Iain Duncan wrote:
what are folks using to