On 27 Aug 2009, at 12:13, Crusty wrote:
>
> you named your buttons:
>
> fooButton = SubmitButton(attrs={'value':'foo'})
> barButton = SubmitButton(attrs={'value':'bar'})
>
> so the respective kw fields should be kw['fooButton'] and
> kw['barButton']
> If these don't exist as well it might have the following reason
>
> I am working more with Sprox than with TW, and sprox does _not_ give
> SubmitButtons a name (<input type="submit" name="xyz" ... />)
> You can check that out easily, navigate to the page where you form
> is located, and view the html source in your browser, and have a
> look at the submit buttons.
> If they lack a name="xyz" field, then they will not be posted!
That's correct, they lack name="" altogether.
> there are multiple ways to work around this, the easiest i can think
> of for now is to give them a name manually:
>
> barButton = SubmitButton(attrs={'value':'bar', 'name'='submit'})
> (untested)
>
Ah, this works!
Thanks for the help.
Jamie