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

« back to all changes in this revision

Viewing changes to ivle/webapp/security/views.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:
111
111
                        session = req.get_session()
112
112
                        session['login'] = user.login
113
113
                        session.save()
 
114
                        session.unlock()
114
115
                        user.last_login = datetime.datetime.now()
115
116
                        req.store.commit()
116
117