~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/dispatch/request.py

  • Committer: William Grant
  • Date: 2009-02-27 03:24:23 UTC
  • Revision ID: grantw@unimelb.edu.au-20090227032423-4d2x815i6adzkskg
Unlock the session everywhere as soon as we are done with it, and add a warning
to the Request.get_sessions()'s docstring to do so.

Otherwise, all other requests block.

Show diffs side-by-side

added added

removed removed

Lines of Context:
295
295
    def get_session(self):
296
296
        """Returns a mod_python Session object for this request.
297
297
        Note that this is dependent on mod_python and may need to change
298
 
        interface if porting away from mod_python."""
 
298
        interface if porting away from mod_python.
 
299
 
 
300
        IMPORTANT: Call unlock() on the session as soon as you are done with
 
301
                   it! If you don't, all other requests will block!
 
302
        """
299
303
        # Cache the session object and set the timeout to 24 hours.
300
304
        if not hasattr(self, 'session'):
301
305
            self.session = mod_python.Session.FileSession(self.apache_req,