Catherine Devlin wrote:
> On Jan 18, 2008 10:31 AM, percious <[EMAIL PROTECTED]> wrote:
>> try putting **kw in the argument list and then passing kw into the
>> widget as the value.
> 
> Thank you... still nothing, though.  **kw comes in empty.
> 
> Here's an absolute bare-bones version that duplicates the error.  If
> nobody can see anything I'm doing wrong, I'll file it as a bug.
> 
> (....)
> 
>     @expose()
>     @validate(validators=myForm.validator, error_handler=ask)
>     def acknowledge(self, integerplease):
>         return 'Your integer was: ' + str(integerplease)
>(.....)

Try:

@validate(form=myForm, error_handler=ask)

That will use the form's validate() method which will store the error
and input value for the duration of the request so if you re-display the
form it gets pre-filled. Take a look at this example I left at the trac:
http://trac.turbogears.org/attachment/ticket/1426/root.py

Alberto

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to