Added missing comments, fixed setup.py and made tests pass
This commit is contained in:
parent
dd59d7241d
commit
4f8ee8f129
10 changed files with 103 additions and 12 deletions
|
|
@ -1,3 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
flask.globals
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
Defines all the global objects that are proxies to the current
|
||||
active context.
|
||||
|
||||
:copyright: (c) 2010 by Armin Ronacher.
|
||||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
from werkzeug import LocalStack, LocalProxy
|
||||
|
||||
# context locals
|
||||
|
|
@ -5,4 +17,4 @@ _request_ctx_stack = LocalStack()
|
|||
current_app = LocalProxy(lambda: _request_ctx_stack.top.app)
|
||||
request = LocalProxy(lambda: _request_ctx_stack.top.request)
|
||||
session = LocalProxy(lambda: _request_ctx_stack.top.session)
|
||||
g = LocalProxy(lambda: _request_ctx_stack.top.g)
|
||||
g = LocalProxy(lambda: _request_ctx_stack.top.g)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue