From db28217574c119b65f4a5c9dcc7922656d60f22b Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 29 May 2011 20:05:39 +0200 Subject: [PATCH] Fixed a bug, view_args not values --- flask/__init__.py | 1 + flask/app.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flask/__init__.py b/flask/__init__.py index f9fcc09f..03f91baa 100644 --- a/flask/__init__.py +++ b/flask/__init__.py @@ -23,6 +23,7 @@ from .helpers import url_for, jsonify, json_available, flash, \ from .globals import current_app, g, request, session, _request_ctx_stack from .ctx import has_request_context from .module import Module +from .blueprints import Blueprint from .templating import render_template, render_template_string from .session import Session diff --git a/flask/app.py b/flask/app.py index 662d6ca0..e8d2672f 100644 --- a/flask/app.py +++ b/flask/app.py @@ -1043,7 +1043,7 @@ class Flask(_PackageBoundObject): if bp is not None and bp in self.url_value_preprocessors: funcs = chain(funcs, self.url_value_preprocessors[bp]) for func in funcs: - func(request.endpoint, request.values) + func(request.endpoint, request.view_args) funcs = self.before_request_funcs.get(None, ()) if bp is not None and bp in self.before_request_funcs: