Package turbogears :: Module startup :: Class VirtualPathFilter

Class VirtualPathFilter

source code

object --+
         |
        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='')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
before_request_body(self)
Determine the relevant path info by stripping of prefixes.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, webpath='')
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

before_request_body(self)

source code 

Determine the relevant path info by stripping of prefixes.

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