Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1109

Show
Ignore:
Timestamp:
05/19/06 11:53:38
Author:
fumanchu
Message:

Comment improvements.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cpengine.py

    r1098 r1109  
    137137         
    138138        client_address: the (IP address, port) of the client 
    139         remote_host: the IP address of the client 
     139        remote_host should be the client's host name. If not available 
     140            (because no reverse DNS lookup is performed), the client 
     141            IP should be provided. 
    140142        scheme: either "http" or "https"; defaults to "http" 
    141143        """ 
  • trunk/cherrypy/_cprequest.py

    r1107 r1109  
    1717        """Populate a new Request object. 
    1818         
    19         remote_addr should be the client IP address 
    20         remote_port should be the client Port 
    21         remote_host should be string of the client's IP address. 
     19        remote_addr should be the client IP address. 
     20        remote_port should be the client Port. 
     21        remote_host should be the client's host name. If not available 
     22            (because no reverse DNS lookup is performed), the client 
     23            IP should be provided. 
    2224        scheme should be a string, either "http" or "https". 
    2325        """ 
     
    4951        request_line should be of the form "GET /path HTTP/1.0". 
    5052        headers should be a list of (name, value) tuples. 
    51         rfile should be a file-like object containing the HTTP request 
    52             entity. 
     53        rfile should be a file-like object containing the HTTP request entity. 
    5354         
    5455        When run() is done, the returned object should have 3 attributes: 
     
    9899            self.process_headers() 
    99100             
    100             # path_info should be the path from the app 
    101             # root (script_name) to the handler. 
     101            # path_info should be the path from the 
     102            # app root (script_name) to the handler. 
    102103            self.script_name = r = cherrypy.tree.script_name(self.path) 
    103104            self.app = cherrypy.tree.apps[r] 
  • trunk/cherrypy/_cpwsgi.py

    r1106 r1109  
    6161    request = None 
    6262    try: 
    63         # LOGON_USER is served by IIS, and is the name of the 
    64         # user after having been mapped to a local account. 
    65         # Both IIS and Apache set REMOTE_USER, when possible. 
    6663        env = environ.get 
    6764        clientAddr = (env('REMOTE_ADDR', ''), int(env('REMOTE_PORT', -1))) 
    6865        request = cherrypy.engine.request(clientAddr, env('REMOTE_ADDR', ''), 
    6966                                          environ['wsgi.url_scheme']) 
     67         
     68        # LOGON_USER is served by IIS, and is the name of the 
     69        # user after having been mapped to a local account. 
     70        # Both IIS and Apache set REMOTE_USER, when possible. 
    7071        request.login = (env('LOGON_USER') or env('REMOTE_USER') or None) 
     72         
    7173        request.multithread = environ['wsgi.multithread'] 
    7274        request.multiprocess = environ['wsgi.multiprocess'] 

Hosted by WebFaction

Log in as guest/cpguest to create tickets