Logo Search packages:      
Sourcecode: zine version File versions  Download package

def zine::application::Zine::add_middleware (   self,
  middleware_factory,
  args,
  kwargs 
)

Add a middleware to the application.  The `middleware_factory`
is a callable that is called with the active WSGI application as
first argument, `args` as extra positional arguments and `kwargs`
as keyword arguments.

The newly applied middleware wraps an internal WSGI application.

Definition at line 925 of file application.py.

00925                                                                  :
        """Add a middleware to the application.  The `middleware_factory`
        is a callable that is called with the active WSGI application as
        first argument, `args` as extra positional arguments and `kwargs`
        as keyword arguments.

        The newly applied middleware wraps an internal WSGI application.
        """
        self.dispatch_wsgi = middleware_factory(self.dispatch_wsgi,
                                                   *args, **kwargs)

    @setuponly
    def add_config_var(self, key, field):


Generated by  Doxygen 1.6.0   Back to index