forked from orbit-oss/flask
More refactoring and moving stuff around
This commit is contained in:
parent
a3c9494f67
commit
665fa2a32b
3 changed files with 15 additions and 14 deletions
11
flask/ctx.py
11
flask/ctx.py
|
|
@ -63,14 +63,3 @@ class _RequestContext(object):
|
|||
if not self.request.environ.get('flask._preserve_context') and \
|
||||
(tb is None or not self.app.debug):
|
||||
self.pop()
|
||||
|
||||
def _default_template_ctx_processor():
|
||||
"""Default template context processor. Injects `request`,
|
||||
`session` and `g`.
|
||||
"""
|
||||
reqctx = _request_ctx_stack.top
|
||||
return dict(
|
||||
request=reqctx.request,
|
||||
session=reqctx.session,
|
||||
g=reqctx.g
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue