Skip to content
Myr

More refactoring and moving stuff around

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent a3c9494 · Browse files · 3 files+15 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+15 added−14 removed

  • other:+15 added−14 removed

3 files+15 added−14 removed

modified:flask/app.py+3 added-3 removed
22 unmodified lines
23from flask.helpers import _PackageBoundObject, url_for, get_flashed_messages, \24 _tojson_filter25from flask.wrappers import Request, Response26from flask.config import ConfigAttribute, Config27from flask.ctx import _default_template_ctx_processor, _RequestContext27from flask.ctx import _RequestContext28from flask.globals import _request_ctx_stack, request29from flask.session import Session, _NullSession30from flask.module import _ModuleSetupState31from flask.templating import _DispatchingJinjaLoader31from flask.templating import _DispatchingJinjaLoader, \32 _default_template_ctx_processor3334# a lock used for logger initialization35_logger_lock = Lock()36
794 unmodified lines
831832 def __call__(self, environ, start_response):833 """Shortcut for :attr:`wsgi_app`."""834 return self.wsgi_app(environ, start_response)834
modified:flask/ctx.py-11 removed
61 unmodified lines
62 # the context can be force kept alive for the test client.63 if not self.request.environ.get('flask._preserve_context') and \64 (tb is None or not self.app.debug):65 self.pop()66 67def _default_template_ctx_processor():68 """Default template context processor. Injects `request`,69 `session` and `g`.70 """71 reqctx = _request_ctx_stack.top72 return dict(73 request=reqctx.request,74 session=reqctx.session,75 g=reqctx.g76 )
modified:flask/templating.py+12 added
11 unmodified lines
1213from flask.globals import _request_ctx_stack141516def _default_template_ctx_processor():17 """Default template context processor. Injects `request`,18 `session` and `g`.19 """20 reqctx = _request_ctx_stack.top21 return dict(22 request=reqctx.request,23 session=reqctx.session,24 g=reqctx.g25 )262728class _DispatchingJinjaLoader(BaseLoader):29 """A loader that looks for templates in the application and all30 the module folders.31 """
55 unmodified lines