Browse Source

Merge branch 'master' of github.com:mitsuhiko/flask

pull/325/head
Armin Ronacher 13 years ago
parent
commit
80bd6949a6
  1. 4
      flask/blueprints.py

4
flask/blueprints.py

@ -292,8 +292,8 @@ class Blueprint(_PackageBoundObject):
def app_url_value_preprocessor(self, f):
"""Same as :meth:`url_value_preprocessor` but application wide.
"""
self.record_once(lambda s: s.app.url_value_preprocessor
.setdefault(self.name, []).append(f))
self.record_once(lambda s: s.app.url_value_preprocessors
.setdefault(None, []).append(f))
return f
def app_url_defaults(self, f):

Loading…
Cancel
Save