#2313: Validate decorator does not work with url args
------------------------+---------------------------------------------------
Reporter: chrisz | Owner:
Type: defect | Status: reopened
Priority: high | Milestone:
Component: TurboGears | Version: 2.0rc1
Severity: major | Resolution:
Keywords: validate |
------------------------+---------------------------------------------------
Changes (by anthonyt):
* status: closed => reopened
* resolution: fixed =>
Comment:
There's a bug in the fix for this ticket in the 2.0 branch (revision 6567
in svn).
It's an off by one error, where the keyword arguments are placed into the
args list at the wrong indexes.
When a decorated action expects arguments (self, foo, bar), it might end
up getting arguments (foo, bar) instead.
I've attached a patch that should fix the problem.
It's not as good a solution as the one in the 2.1 branch, but it fixes the
bug without any large refactoring.
--
Ticket URL: <http://trac.turbogears.org/ticket/2313#comment:3>
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.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---