~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 07:12:38 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:506
dispatch.__init__, dispatch.request, cgirequest:
    Removed "username" attribute from Request objects altogether.
    Use req.user.login instead.
consoleservice, userservice, fileservice, debuginfo, studpath:
    Replaced use of "req.username" with "req.user.login".
Yay, refactor complete!

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        req.throw_error(req.HTTP_BAD_REQUEST)
55
55
 
56
56
def handle_start(req):
57
 
    jail_path = os.path.join(conf.jail_base, req.username)
58
 
    working_dir = os.path.join("/home", req.username)   # Within jail
 
57
    jail_path = os.path.join(conf.jail_base, req.user.login)
 
58
    working_dir = os.path.join("/home", req.user.login)   # Within jail
59
59
 
60
60
    # Get the UID of the logged-in user
61
61
    uid = req.user.unixid