Back to index

moin  1.9.0~rc2
Public Member Functions
MoinMoin.support.werkzeug.contrib.kickstart.Processor Class Reference

List of all members.

Public Member Functions

def process_request
def process_response
def process_view
def process_exception

Detailed Description

A request and response processor - it is what Django calls a
middleware, but Werkzeug also includes straight-foward support for real
WSGI middlewares, so another name was chosen.

The code of this processor is derived from the example in the Werkzeug
trac, called `Request and Response Processor
<http://dev.pocoo.org/projects/werkzeug/wiki/RequestResponseProcessor>`_

Definition at line 89 of file kickstart.py.


Member Function Documentation

Definition at line 115 of file kickstart.py.

00115 
00116     def process_exception(self, request, exception):
00117         return None
00118 

Definition at line 99 of file kickstart.py.

00099 
00100     def process_request(self, request):
00101         return request

Definition at line 102 of file kickstart.py.

00102 
00103     def process_response(self, request, response):
00104         return response

def MoinMoin.support.werkzeug.contrib.kickstart.Processor.process_view (   self,
  request,
  view_func,
  view_args,
  view_kwargs 
)
process_view() is called just before the Application calls the
function specified by view_func.

If this returns None, the Application processes the next Processor,
and if it returns something else (like a Response instance), that
will be returned without any further processing.

Definition at line 105 of file kickstart.py.

00105 
00106     def process_view(self, request, view_func, view_args, view_kwargs):
00107         """process_view() is called just before the Application calls the
00108         function specified by view_func.
00109 
00110         If this returns None, the Application processes the next Processor,
00111         and if it returns something else (like a Response instance), that
00112         will be returned without any further processing.
00113         """
00114         return None


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