Ticket #2303: fix_r6566_t2303.diff
| File fix_r6566_t2303.diff, 1.4 KB (added by anthonyt, 3 years ago) |
|---|
-
tg/controllers.py
diff --git tg/controllers.py tg/controllers.py index 36bf1e5..fc1e017 100644
class DecoratedController(WSGIController): 129 129 rendering. 130 130 """ 131 131 132 # Add the GET/POST request params to our params dict, overriding any defaults passed in. 133 params.update(pylons.request.params.mixed()) 134 132 135 self._initialize_validation_context() 133 136 pylons.request.start_response = self.start_response 134 137 … … class DecoratedController(WSGIController): 204 207 be FormEncode Invalid objects. 205 208 """ 206 209 207 # this is here because the params were not getting passed in on controllers that208 # were mapped with routes. This is a fix, but it's in the wrong place.209 # we need to add better tests to ensure decorated controllers with routings work210 # properly.211 212 210 validation = getattr(controller.decoration, 'validation', None) 213 211 214 212 if validation is None: … … class ObjectDispatchController(DecoratedController): 468 466 pylons.c.controller_url = url 469 467 if remainder and remainder[-1] == '': 470 468 remainder.pop() 471 return controller, remainder, pylons.request.params.mixed()469 return controller, remainder, {} 472 470 473 471 def _perform_call(self, func, args): 474 472 controller, remainder, params = self._get_routing_info(args.get('url'))