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

« back to all changes in this revision

Viewing changes to www/dispatch/request.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:
46
46
        user (read)
47
47
            User object. Details of the user who is currently logged in, or
48
48
            None.
49
 
        username (read, deprecated)
50
 
            String. Login name of the user who is currently logged in, or
51
 
            None.
52
 
            Deprecated in favour of user.login.
53
49
        hostname (read)
54
50
            String. Hostname the server is running on.
55
51
        headers_in (read)
188
184
        else:
189
185
            (self.app, self.path) = (common.util.split_path(path))
190
186
        self.user = None
191
 
        self.username = None
192
187
        self.hostname = req.hostname
193
188
        self.headers_in = req.headers_in
194
189
        self.headers_out = req.headers_out