durusmail: qp: Re: 1.9.x and form.is_submitted
1.9.x and form.is_submitted
2006-11-24
2006-11-24
Re: 1.9.x and form.is_submitted
2006-11-24
Re: 1.9.x and form.is_submitted
Michael Watkins
2006-11-24
* David K. Hess wrote [2006-11-23 23:34:19 -0600]:
> Doesn't that make it impossible to tell which SubmitWidget submitted a form
> if it has more than one?

In addition to your subsequent discovery, have a look inside qp.fill.form and
you'll find Form.get_submit() which returns the name of the submit button
used.

1.9.1 did fix an issue with multiple submit widgets -
form.get('your_submit_widget_name') would return True even if not clicked
(except for the 'cancel' submit widget or so it seemed).

Either approach should now work reliably.
reply