Skip to content
Myr

Fixed typo in URL Processor documentation

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jason Moon · committed by Jason Moon · parent 6309987 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/patterns/urlprocessors.rst+1 added-1 removed
63 unmodified lines
64 @app.url_value_preprocessor65 def pull_lang_code(endpoint, values):66 g.lang_code = values.pop('lang_code', None)6768That way you no longer have to do the `lang_code` assigment to68That way you no longer have to do the `lang_code` assignment to69:data:`~flask.g` in every function. You can further improve that by70writing your own decorator that prefixes URLs with the language code, but71the more beautiful solution is using a blueprint. Once the72``'lang_code'`` is popped from the values dictionary and it will no longer
54 unmodified lines