forked from orbit-oss/flask
Fixed Blueprint.app_url_value_preprocessor.
This commit is contained in:
parent
f6798885e6
commit
f8caa54d31
1 changed files with 2 additions and 2 deletions
|
|
@ -292,8 +292,8 @@ class Blueprint(_PackageBoundObject):
|
||||||
def app_url_value_preprocessor(self, f):
|
def app_url_value_preprocessor(self, f):
|
||||||
"""Same as :meth:`url_value_preprocessor` but application wide.
|
"""Same as :meth:`url_value_preprocessor` but application wide.
|
||||||
"""
|
"""
|
||||||
self.record_once(lambda s: s.app.url_value_preprocessor
|
self.record_once(lambda s: s.app.url_value_preprocessors
|
||||||
.setdefault(self.name, []).append(f))
|
.setdefault(None, []).append(f))
|
||||||
return f
|
return f
|
||||||
|
|
||||||
def app_url_defaults(self, f):
|
def app_url_defaults(self, f):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue