Back to index

moin  1.9.0~rc2
Classes | Functions | Variables
MoinMoin.web.request Namespace Reference

Classes

class  MoinMoinFinish
class  Request
class  TestRequest

Functions

def evaluate_request

Variables

tuple logging = log.getLogger(__name__)

Class Documentation

class MoinMoin::web::request::MoinMoinFinish
Raised to jump directly to end of run() function, where finish is called 

Definition at line 23 of file request.py.


Function Documentation

Evaluate a request and returns a tuple of application iterator,
status code and list of headers. This method is meant for testing
purposes.

Definition at line 91 of file request.py.

00091 
00092 def evaluate_request(request):
00093     """ Evaluate a request and returns a tuple of application iterator,
00094     status code and list of headers. This method is meant for testing
00095     purposes.
00096     """
00097     output = []
00098     headers_set = []
00099     def start_response(status, headers, exc_info=None):
00100         headers_set[:] = [status, headers]
00101         return output.append
00102     result = request(request.environ, start_response)
00103 
00104     # any output via (WSGI-deprecated) write-callable?
00105     if output:
00106         result = output
00107     return (result, headers_set[0], headers_set[1])

Here is the caller graph for this function:


Variable Documentation

Definition at line 21 of file request.py.