durusmail: quixote-users: bug in Form.form_submitted(...)?
bug in Form.form_submitted(...)?
2003-08-01
2003-08-01
2003-08-02
bug in Form.form_submitted(...)?
Alex Li
2003-08-01
Hi all,

The Form.form_submitted() in Quixote 0.6 is like this:

    def form_submitted (self, request):
        return len(request.form) > 0

Should it also test if the submit button is included
(pressed) in the request or not?  Like this:

    def form_submitted(self, request):
        submit = self.get_submit_button(request)
        if submit is not None and len(request.form) > 0:
            return True
        return False

Cheers,
Alex


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

reply