Skip to content
Myr

Merge pull request #324 from embe/master

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

Blueprint.app_url_value_preprocessor doesn't work correctly.

authored by Ron DuPlain · committed by Ron DuPlain · parents 8f85a3b, f8caa54 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:flask/blueprints.py+2 added-2 removed
290 unmodified lines
291292 def app_url_value_preprocessor(self, f):293 """Same as :meth:`url_value_preprocessor` but application wide.294 """295 self.record_once(lambda s: s.app.url_value_preprocessor296 .setdefault(self.name, []).append(f))295 self.record_once(lambda s: s.app.url_value_preprocessors296 .setdefault(None, []).append(f))297 return f298299 def app_url_defaults(self, f):300 """Same as :meth:`url_defaults` but application wide.
21 unmodified lines