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

« back to all changes in this revision

Viewing changes to lib/common/interpret.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:
72
72
    # (Note: files are executed by their owners, not the logged in user.
73
73
    # This ensures users are responsible for their own programs and also
74
74
    # allows them to be executed by the public).
75
 
    uid = req.get_session()['unixid']
 
75
    uid = req.user.unixid
76
76
 
77
77
    # Split up req.path again, this time with respect to the jail
78
78
    (working_dir, _) = os.path.split(filename_abs)