def _default_template_ctx_processor():
 reqctx = _request_ctx_stack.top
 appctx = _app_ctx_stack.top
 rv = {}
 if (appctx is not None):
  rv['g'] = appctx.g
 if (reqctx is not None):
  rv['request'] = reqctx.request
  rv['session'] = reqctx.session
 return rv

def _default_template_ctx_processor ( ) : reqctx = _request_ctx_stack . top appctx = _app_ctx_stack . top rv = { } if ( appctx is not None ) : rv [ 'g' ] = appctx . g if ( reqctx is not None ) : rv [ 'request' ] = reqctx . request rv [ 'session' ] = reqctx . session return rv
default template context processor .