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

Class VirtualPathFilter

source code

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

Inherited from cherrypy.filters.basefilter.BaseFilter: after_error_response, before_error_response, before_finalize, before_main, on_end_request, on_end_resource, on_start_resource

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

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 off prefixes.

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

Overrides: cherrypy.filters.basefilter.BaseFilter.before_request_body