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

« back to all changes in this revision

Viewing changes to www/apps/consoleservice/__init__.py

  • Committer: mattgiuca
  • Date: 2008-02-19 06:51:25 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:505
dispatch.html, consoleservice, userservice, interpret:
    Replaced use of session with use of "req.user" object.
    Most of these no longer need to use session at all anymore.
    Those that do do so correctly ("user" field).
This unbreaks the build.

cgirequest: Sets "user" in CGIRequest object.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    working_dir = os.path.join("/home", req.username)   # Within jail
59
59
 
60
60
    # Get the UID of the logged-in user
61
 
    uid = req.get_session()['unixid']
 
61
    uid = req.user.unixid
62
62
 
63
63
    # Set request attributes
64
64
    req.content_type = "text/plain"