Package turbogears :: Package visit :: Module api :: Class VisitFilter

Class VisitFilter

source code

                            object --+    
                                     |    
cherrypy.filters.basefilter.BaseFilter --+
                                         |
                                        VisitFilter

A filter that automatically tracks visitors.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
before_main(self)
Check whether submitted request belongs to an existing visit.
source code
 
clear_cookie(self)
Clear any existing visit ID cookie.
source code
 
send_cookie(self, visit_key)
Send an visit ID cookie back to the browser.
source code

Inherited from cherrypy.filters.basefilter.BaseFilter: after_error_response, before_error_response, before_finalize, before_request_body, 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)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

before_main(self)

source code 

Check whether submitted request belongs to an existing visit.

Overrides: cherrypy.filters.basefilter.BaseFilter.before_main