Repository URL to install this package:
Version:
3.4.35 ▾
|
ó ȍEYc @ s² d Z d d l m Z d d l Z d d l Z d d l Z d d l m Z d e j j f d YZ d e j j f d YZ d e f d YZ d e f d YZ d S( s# Base class(es) for WSGI Middleware.iÿÿÿÿ( t getargspecN( t cfgt NoContentTypeResponsec B s e Z d Z RS( N( t __name__t __module__t Nonet default_content_type( ( ( sI /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_middleware/base.pyR s t NoContentTypeRequestc B s e Z e Z RS( ( R R R t ResponseClass( ( ( sI /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_middleware/base.pyR s t ConfigurableMiddlewarec B st e Z d Z e d Z d d Z d d Z e d Z e d d Z e j j d e d Z RS( sõ Base WSGI middleware wrapper. These classes require an application to be initialized that will be called next. By default the middleware will simply call its wrapped app, or you can override __call__ to customize its behavior. c s; | r | j n i j | f d } | S( s½ Factory method for paste.deploy. :param global_conf: dict of options for all middlewares (usually the [DEFAULT] section of the paste deploy configuration file) :param local_conf: options dedicated to this middleware (usually the option defined in the middleware section of the paste deploy configuration file) c s | S( N( ( t app( t clst conf( sI /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_middleware/base.pyt middleware_filter: s ( t copyt update( R t global_conft local_confR ( ( R R sI /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_middleware/base.pyt factory, s c C sé | | _ t | t j r0 i | _ | | _ nµ | p9 i | _ d | j k rÙ d | j k rp | j d g } n d } d | j k r | j d } n d } t j | _ | j g d | j d d | d | d t n t j | _ d S( sh Base middleware constructor :param conf: a dict of options or a cfg.ConfigOpts object t oslo_config_projectt oslo_config_filet oslo_config_programt projectt progt default_config_filest validate_default_valuesN( t applicationt isinstanceR t ConfigOptsR t oslo_confR t Truet CONF( t selfR R R t program( ( sI /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_middleware/base.pyt __init__? s&