Package wtf :: Package app :: Package services :: Module crash :: Class Middleware
[hide private]
[frames] | no frames]

Class Middleware

source code

object --+
         |
        Middleware

Crash middleware
Instance Methods [hide private]
 
__init__(self, crashservice, debug, display, func)
Initialization
source code
iterable
__call__(self, environ, start_response)
Middleware handler
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
CrashService _crash
Crash service instance
bool _debug
Debugging enabled?
tuple _display
Tuple of crash page content and status line
callable _func
Wrapped WSGI callable
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, crashservice, debug, display, func)
(Constructor)

source code 
Initialization
Parameters:
  • crashservice (CrashService) - Crash service instance
  • debug (bool) - Debugging enabled?
  • display (tuple) - Tuple of crash page content and status line
  • func (callable) - WSGI callable to wrap
Overrides: object.__init__

__call__(self, environ, start_response)
(Call operator)

source code 
Middleware handler
Parameters:
  • environ (dict) - WSGI environment
  • start_response (callable) - Start response callable
Returns: iterable
WSGI response iterable