Back to index

moin  1.9.0~rc2
Functions | Variables
MoinMoin.support.werkzeug.testapp Namespace Reference

Functions

def test_app

Variables

tuple logo
tuple TEMPLATE

Function Documentation

def MoinMoin.support.werkzeug.testapp.test_app (   environ,
  start_response 
)
Simple test application that dumps the environment.

Definition at line 134 of file testapp.py.

00134 
00135 def test_app(environ, start_response):
00136     """Simple test application that dumps the environment."""
00137     req = Request(environ, populate_request=False)
00138     if req.args.get('resource') == 'logo':
00139         response = logo
00140     else:
00141         response = Response(TEMPLATE.render(req=req), mimetype='text/html')
00142     return response(environ, start_response)
00143 

Here is the call graph for this function:


Variable Documentation

Definition at line 16 of file testapp.py.

Definition at line 52 of file testapp.py.