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

« back to all changes in this revision

Viewing changes to www/dispatch/__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:
82
82
    else:
83
83
        req.user = login.get_user_details(req)
84
84
        logged_in = True
85
 
    # XXX username is deprecated
86
 
    try:
87
 
        req.username = req.user.login
88
 
    except AttributeError:
89
 
        req.username = None
90
85
 
91
86
    if logged_in:
92
87
        # Keep the user's session alive by writing to the session object.