OpenQuizz
Une application de gestion des contenus pédagogiques
AppContext Class Reference
Inheritance diagram for AppContext:
Collaboration diagram for AppContext:

Public Member Functions

def __init__ (self, app)
 
def push (self)
 
def pop (self, exc=_sentinel)
 
def __enter__ (self)
 
def __exit__ (self, exc_type, exc_value, tb)
 

Data Fields

 app
 
 url_adapter
 
 g
 

Detailed Description

The application context binds an application object implicitly
to the current thread or greenlet, similar to how the
:class:`RequestContext` binds request information.  The application
context is also implicitly created if a request context is created
but the application is not on top of the individual application
context.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  app 
)

Member Function Documentation

◆ __enter__()

def __enter__ (   self)

◆ __exit__()

def __exit__ (   self,
  exc_type,
  exc_value,
  tb 
)

◆ pop()

def pop (   self,
  exc = _sentinel 
)
Pops the app context.

◆ push()

def push (   self)
Binds the app context to the current context.

Field Documentation

◆ app

app

◆ g

g

◆ url_adapter

url_adapter

The documentation for this class was generated from the following file: