Context preserving is now part of Flask and not the test client. This fixes #326

This commit is contained in:
Armin Ronacher 2011-09-24 20:27:38 +02:00
parent d2eefe25e7
commit c6316132b1
5 changed files with 64 additions and 21 deletions

View file

@ -19,6 +19,7 @@ def _lookup_object(name):
raise RuntimeError('working outside of request context')
return getattr(top, name)
# context locals
_request_ctx_stack = LocalStack()
current_app = LocalProxy(partial(_lookup_object, 'app'))