Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.support.werkzeug.contrib.fixers.LighttpdCGIRootFix Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 app

Detailed Description

Wrap the application in this middleware if you are using lighttpd
with FastCGI or CGI and the application is mounted on the URL root.

:param app: the WSGI application

Definition at line 26 of file fixers.py.


Constructor & Destructor Documentation

Definition at line 33 of file fixers.py.

00033 
00034     def __init__(self, app):
00035         self.app = app


Member Function Documentation

def MoinMoin.support.werkzeug.contrib.fixers.LighttpdCGIRootFix.__call__ (   self,
  environ,
  start_response 
)

Definition at line 36 of file fixers.py.

00036 
00037     def __call__(self, environ, start_response):
00038         environ['PATH_INFO'] = environ.get('SCRIPT_NAME', '') + \
00039                                environ.get('PATH_INFO', '')
00040         environ['SCRIPT_NAME'] = ''
00041         return self.app(environ, start_response)
00042 


Member Data Documentation

Definition at line 34 of file fixers.py.


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