~ubuntu-branches/ubuntu/quantal/python-django/quantal

« back to all changes in this revision

Viewing changes to django/contrib/sessions/middleware.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2008-11-15 19:15:33 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20081115191533-xbt1ut2xf4fvwtvc
Tags: 1.0.1-0ubuntu1
* New upstream release:
  - Bug fixes.

* The tests/ sub-directory appaers to have been dropped upstream, so pull
  our patch to workaround the tests and modify the rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
        request.session = engine.SessionStore(session_key)
12
12
 
13
13
    def process_response(self, request, response):
14
 
        # If request.session was modified, or if response.session was set, save
15
 
        # those changes and set a session cookie.
 
14
        """
 
15
        If request.session was modified, or if the configuration is to save the
 
16
        session every time, save the changes and set a session cookie.
 
17
        """
16
18
        try:
17
19
            accessed = request.session.accessed
18
20
            modified = request.session.modified