#2377: Dispatcher regression in TG2.1:
------------------------+---------------------------------------------------
Reporter: lmacken | Owner: percious
Type: defect | Status: new
Priority: normal | Milestone: 2.1
Component: TurboGears | Version: 2.1
Severity: critical | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by lmacken):
This patch seems to fix the bug, however, I'm currently having issues
getting the tg-dev test suite running at the moment, so I can't see if
this breaks anything else.
{{{
--- ./controllers/decoratedcontroller.py 2009-09-27
07:55:43.000000000 -0400
+++ /usr/lib/python2.6/site-packages/tg/controllers/decoratedcontroller.py
2009-09-27 08:31:53.213842831 -0400
@@ -81,7 +81,7 @@
controller.decoration.run_hooks('before_validate', remainder,
params)
- validate_params = self._get_params_with_argspec(controller,
params, remainder)
+ validate_params, remainder =
self._get_params_with_argspec(controller, params, remainder)
for ignore in config.get('ignore_parameters', []):
if params.get(ignore):
--- ./controllers/dispatcher.py 2009-09-27 07:55:43.000000000 -0400
+++ /usr/lib/python2.6/site-packages/tg/controllers/dispatcher.py
2009-09-27 08:34:42.911905225 -0400
@@ -105,8 +105,8 @@
for i, var in enumerate(argvars):
if i >= len(remainder):
break
- params[var] = remainder[i]
- return params
+ params[var] = remainder.pop(i)
+ return params, remainder
def _remove_argspec_params_from_params(self, func, params,
remainder):
"""Remove parameters from the argument list that are
}}}
--
Ticket URL: <http://trac.turbogears.org/ticket/2377#comment:1>
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
-~----------~----~----~----~------~----~------~--~---