On 3/29/06, Claudio MartÃnez <[EMAIL PROTECTED]> wrote: > > I just submitted ticket with a patch attached. > > http://trac.turbogears.org/turbogears/ticket/694/ > > """Unexpected keyword arguments never get to a controller or validator > because they are cleared in the way by adapt_call. This function only > leaves the parameters used by the controller. > > This can cause many problems, for example if your controller has an > optional keyword argument called limit and someone somewhere mistypes > limit as linit, you would be using the default value. Depending on the > situation, this can cost a lot of time.
I think you're right that this can make troubleshooting more difficult. This behavior in the controller is fairly new. Rather than just going ahead and adding a switch, it'd be good to discuss whether people want this kind of behavior. I'm pretty sure that Simon and I talked about it a little bit when he implemented that code, but it's an important enough point to bring up with the group here. Should unexpected parameters raise an exception every time? Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

