Browse Source

Fixed a bug, view_args not values

pull/262/head
Armin Ronacher 14 years ago
parent
commit
db28217574
  1. 1
      flask/__init__.py
  2. 2
      flask/app.py

1
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

2
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:

Loading…
Cancel
Save