Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

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  
    8181            controller.decoration.run_hooks('before_validate', remainder, 
    8282                                            params) 
    8383 
    84             validate_params = self._get_params_with_argspec(controller, params, remainder) 
     84            validate_params, remainder = self._get_params_with_argspec(controller, params, remainder) 
    8585 
    8686            for ignore in config.get('ignore_parameters', []): 
    8787                if params.get(ignore): 
  • tg/controllers/dispatcher.py

    diff -r d8bda98fcbbe tg/controllers/dispatcher.py
    a b  
    105105            for i, var in enumerate(argvars): 
    106106                if i >= len(remainder): 
    107107                    break 
    108                 params[var] = remainder[i] 
    109         return params 
     108                params[var] = remainder.pop(i) 
     109        return params, remainder 
    110110 
    111111    def _remove_argspec_params_from_params(self, func, params, remainder): 
    112112        """Remove parameters from the argument list that are