Browse Source

Merge pull request #324 from embe/master

Blueprint.app_url_value_preprocessor doesn't work correctly.
pull/325/head
Ron DuPlain 13 years ago
parent
commit
7044b4becc
  1. 4
      flask/blueprints.py

4
flask/blueprints.py

@ -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…
Cancel
Save