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

« back to all changes in this revision

Viewing changes to www/dispatch/request.py

  • Committer: mattgiuca
  • Date: 2008-01-21 05:47:23 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:255
dispatch.request: Added "hostname" field.
debuginfo: Print hostname field from request.
consoleservice: Use the hostname field from request to determine the server
hostname, rather than hardcoding "localhost".

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        username (read)
46
46
            String. Login name of the user who is currently logged in, or
47
47
            None.
 
48
        hostname (read)
 
49
            String. Hostname the server is running on.
48
50
        headers_in (read)
49
51
            Table object representing headers sent by the client.
50
52
        headers_out (read, can be written to)
166
168
        (self.app, self.path) = (
167
169
            common.util.split_path(common.util.unmake_path(req.uri)))
168
170
        self.username = None
 
171
        self.hostname = req.hostname
169
172
        self.headers_in = req.headers_in
170
173
        self.headers_out = req.headers_out
171
174