Ticket #2377: TurboGears2-2.1dev-dispatch.patch
| File TurboGears2-2.1dev-dispatch.patch, 1.2 KB (added by lmacken, 3 years ago) |
|---|
-
tg/controllers/decoratedcontroller.py
diff -r d8bda98fcbbe tg/controllers/decoratedcontroller.py
a b 81 81 controller.decoration.run_hooks('before_validate', remainder, 82 82 params) 83 83 84 validate_params = self._get_params_with_argspec(controller, params, remainder)84 validate_params, remainder = self._get_params_with_argspec(controller, params, remainder) 85 85 86 86 for ignore in config.get('ignore_parameters', []): 87 87 if params.get(ignore): -
tg/controllers/dispatcher.py
diff -r d8bda98fcbbe tg/controllers/dispatcher.py
a b 105 105 for i, var in enumerate(argvars): 106 106 if i >= len(remainder): 107 107 break 108 params[var] = remainder [i]109 return params 108 params[var] = remainder.pop(i) 109 return params, remainder 110 110 111 111 def _remove_argspec_params_from_params(self, func, params, remainder): 112 112 """Remove parameters from the argument list that are