Package turbogears :: Package filters :: Module base :: Class VirtualPathFilter

Class VirtualPathFilter

source code

cherrypy.filters.basefilter.BaseFilter --+
                                         |
                                        VirtualPathFilter

Filter that makes CherryPy ignorant of a URL root path.

That is, you can mount your app so the URI "/users/~rdel/myapp/" maps to the root object "/".

Instance Methods
 
__init__(self, webpath='') source code
 
before_request_body(self)
Determine the relevant path info by stripping off prefixes.
source code
Method Details

before_request_body(self)

source code 

Determine the relevant path info by stripping off prefixes.

Strips webpath and SCRIPT_NAME from request.object_path and sets request.path_info (since CherryPy 2 does not set it).