durusmail: quixote-users: Request to correkt documentationstring
Request to correkt documentationstring
2005-08-15
Request to correkt documentationstring
Massa, Harald
2005-08-15
within altdemo.py there is written:

class DemoSession(Session):
    def __init__(self, id):
        Session.__init__(self, id)
        self.num_requests = 0

    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.)
        """


especially the part: "then we could override finish_request()" ----

which is of no use, to my tests. We would hav to overrite

        def finish_successful_request(self):
            """das passiert am Ende des Requests"""
            print "request swedish"

within die SessionManager, not within the session.


Am I wrong or is the documentation wrong?

Harald



reply