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 #1653: ignore_parameters.patch
| File ignore_parameters.patch,
697 bytes
(added by chrisz, 4 years ago) |
|
Add tg.ignore_parameters option
|
-
|
|
|
|
| 377 | 377 | def _execute_func(func, template, format, content_type, mapping, fragment, args, kw): |
| 378 | 378 | """Call controller method and process it's output.""" |
| 379 | 379 | if config.get("tg.strict_parameters", False): |
| 380 | | tg_util.remove_keys(kw, ["tg_random", "tg_format"]) |
| | 380 | tg_util.remove_keys(kw, ["tg_random", "tg_format"] |
| | 381 | + config.get("tg.ignore_parameters", [])) |
| 381 | 382 | else: |
| 382 | 383 | args, kw = tg_util.adapt_call(func, args, kw) |
| 383 | 384 | if config.get('server.environment', 'development') == 'development': |
Download in other formats: