On 12/16/05, Dan Jacob <[EMAIL PROTECTED]> wrote:
>
> There should be a submit_buttons argument instead:
>
> def __init__(self, widgets, submit_buttons=[(SubmitButton("submit",
> "Submit")...])
>
> The template then has somthing like:
>
>  <tr>
>             <td>&#160;</td>
>             <td><span class="submit_button" py:for="submit in
> submit_buttons" py:content="submit.insert()"/></td>
>         </tr>

The only thing special about the submit button now, as far as the form
is concerned, is that the value gets stripped out on the way in.
Otherwise, the submit buttons are normal widgets and can be treated as
such. (If you have multiple submit buttons, you'd *want* the value to
come in.)

If we wanted to add special method dispatching behavior, that's another story...

Kevin

--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Reply via email to