durusmail: qp: Form reset?
Form reset?
2007-10-18
2007-10-29
2007-10-29
2007-10-29
2007-10-29
2007-10-30
2007-10-30
2007-10-30
2007-10-30
2007-10-30
Re: Form reset?
2007-10-30
2007-10-30
2007-10-30
2007-11-02
2007-11-19
Form reset?
David Binger
2007-10-29
On Oct 29, 2007, at 10:16 AM, David K. Hess wrote:

> the intended usage of Form?
>
> def get_form(self):
>         form = Form()
>       form.add's...
>       return form
>
> def some_url [html] (self):
>
>         form = self.get_form()
>
>         if form.is_submitted() and not form.has_errors():
>             doit(form.get's...)
>
>         header()
>         form = self.get_form()
>         form.render()
>         footer()


I've lost track of your purpose with the second Form instance.
If you want to clear the form errors, you can just do that
explicitly.
If you want a form as if the page was not submitted
at all, maybe you should redirect("").


reply