class documentation

class DemoSession(Session4):

Constructor: DemoSession(id)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method start_request This is called from the main object publishing loop whenever we start processing a new request. Obviously, this is a good place to track the number of requests made. (If we were interested in the number of *successful* requests made, then we could override finish_request(), which is called by the publisher at the end of each successful request...
Instance Variable num_requests Undocumented

Inherited from Session4:

Method is_dirty Undocumented
Method preserve_current_values Undocumented
Constant MAX_FORM_TOKENS Undocumented
Instance Variable _last_values Undocumented
def __init__(self, id: str):
def start_request(self):

This is called from the main object publishing loop whenever we start processing a new request. Obviously, this is a good place to track the number of requests made. (If we were interested in the number of *successful* requests made, then we could override finish_request(), which is called by the publisher at the end of each successful request.) Quixote's original test-code overrode has_info() and then assigned is_dirty to be has_info: however, Session4 will automatically detect changes (in this case to num_requests) and returns is_dirty() accordingly.

num_requests: int =

Undocumented