[Repoze-dev] bfg redirects

2009-06-27 Thread Iain Duncan
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

Re: [Repoze-dev] bfg redirects

2009-06-27 Thread Chris McDonough
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