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

Changeset 1467

Show
Ignore:
Timestamp:
12/02/06 16:30:23
Author:
fumanchu
Message:

pychecker and doc tweaks.

Files:

Legend:

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

    r1462 r1467  
    33__version__ = '3.0.0RC1' 
    44 
    5 import os as _os 
    6 _localdir = _os.path.dirname(__file__) 
    75from urlparse import urljoin as _urljoin 
    86 
  • trunk/cherrypy/_cpdispatch.py

    r1463 r1467  
    200200class WSGIEnvProxy(object): 
    201201     
    202     def __getattr__(self, key, default=None): 
    203         return getattr(cherrypy.request.wsgi_environ, key, default
     202    def __getattr__(self, key): 
     203        return getattr(cherrypy.request.wsgi_environ, key
    204204 
    205205 
  • trunk/cherrypy/_cperror.py

    r1444 r1467  
    3030        #  2. a URL relative to the current path 
    3131        # Note that any query string will be discarded. 
    32         path = _urljoin(cherrypy.request.path_info, path) 
     32        path = _urljoin(request.path_info, path) 
    3333         
    3434        # Set a 'path' member attribute so that code which traps this 
     
    7070        # http://ppewww.ph.gla.ac.uk/~flavell/www/post-redirect.html 
    7171        if status is None: 
    72             if cherrypy.request.protocol >= (1, 1): 
     72            if request.protocol >= (1, 1): 
    7373                status = 303 
    7474            else: 
     
    273273     
    274274    template = _HTTPErrorTemplate 
     275     
     276    # Replace the default template with a custom one? 
    275277    error_page_file = cherrypy.request.error_page.get(code, '') 
    276278    if error_page_file: 
  • trunk/cherrypy/test/test.py

    r1466 r1467  
    264264            sys.stdout.write(".") 
    265265            sys.stdout.flush() 
    266             name = os.path.split(morf)[1] 
     266##            name = os.path.split(morf)[1] 
    267267            if morf.find('test') != -1: 
    268268                continue 
  • trunk/cherrypy/wsgiserver.py

    r1465 r1467  
    197197                # No Content-Length header supplied. This will hang 
    198198                # cgi.FieldStorage, since it cannot determine when to 
    199                 # stop reading from the socket. Until we handle chunked 
    200                 # encoding, always respond with 411 Length Required. 
     199                # stop reading from the socket. 
    201200                # See http://www.cherrypy.org/ticket/493. 
    202201                self.simple_response("411 Length Required") 
     
    457456            self.environ["wsgi.url_scheme"] = "https" 
    458457            self.environ["HTTPS"] = "on" 
    459             sslenv = getattr(server, "ssl_environ"
     458            sslenv = getattr(server, "ssl_environ", None
    460459            if sslenv: 
    461460                self.environ.update(sslenv) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets