The dispatch happens before validation, so you need to tell the
dispatcher that those parameters might not be available during routing
and that they will be provided by the validator later.

You can do this by providing a default value inside the method
declaration, this value can by any value as those will be overwritten
by the validator.

Otherwise you can declare the method as def something(self, *args,
**kw) and the dispatcher will know that the method can have or not any
number of arguments.

On Sun, Mar 11, 2012 at 10:45 PM, alex bodnaru
<[email protected]> wrote:
>
> hello friends,
>
> i wish to describe an issue. i can't say whether it's a bug or not' but 
> someone
> may find my finding shorten their search.
>
> in my schema, part of the fields are marked as if_missing=some_value
> these fields, when missing, generated error 404 (page not found), if they were
> in the controller function arguments.
> but i could find these in the **kwargs dictionary, for any interested parties.
>
> best regards,
> alex
>
> --
> You received this message because you are subscribed to the Google Groups 
> "TurboGears" 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?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en.

Reply via email to