Kevin Dangoor wrote: > On 1/4/06, Keir Mierle <[EMAIL PROTECTED]> wrote: > > The devcast says that the submit argument is removed from the form > > parameters when passed via the inputform; hence there is no 'submit' > > parameter to signup_confirm(). This works great, but only when there is > > no validation errors. When there is errors, somehow the 'submit' > > parameter is sent the second time (i.e. after showing the validation > > errors, the user puts in valid data, clicks submit again). This causes > > a 'unexpected keyword argument "submit"' error. > > > > I suspect this is not the intended behaviour. I looked through the > > validation code briefly but did not see an obvious answer. > > Sounds like a bug to me. Can you submit a ticket? http://trac.turbogears.org >
Regarding sumbit arguments being stripped during the form validation, if we change the SubmitButton widget to not use the name attribute (who need this?) there is no need to special case it for removing. Ciao Michele

