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("").


_______________________________________________
QP mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/qp

Reply via email to