#694: [PATCH] Strict controller parameters
----------------------------------------------------------+-----------------
Reporter: Claudio Martinez <[EMAIL PROTECTED]> | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: TurboGears | Version:
Severity: minor | Keywords:
----------------------------------------------------------+-----------------
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.
When you enable tg.strict_parameters = True in app.cfg, passing unexpected
arguments to a controller will raise an exception, just like a normal
python function.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/694>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---