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

Ticket #547: last_to_lower_case.patch

  • test/modpy.py

    old new  
    6161PythonFixupHandler cherrypy.test.modpy::wsgisetup 
    6262PythonOption testmod %s 
    6363PythonHandler modpython_gateway::handler 
    64 PythonOption wsgi.application cherrypy._cpwsgi::wsgiApp 
     64PythonOption wsgi.application cherrypy._cpwsgi::wsgi_app 
    6565PythonDebug On 
    6666""" 
    6767 
  • test/benchmark.py

    old new  
    295295    SetHandler python-program 
    296296    PythonFixupHandler cherrypy.test.benchmark::startup_modpython 
    297297    PythonHandler modpython_gateway::handler 
    298     PythonOption wsgi.application cherrypy._cpwsgi::wsgiApp 
     298    PythonOption wsgi.application cherrypy._cpwsgi::wsgi_app 
    299299    PythonDebug On 
    300300%s%s 
    301301</Location> 
  • test/helper.py

    old new  
    122122            if base == "/": 
    123123                base = "" 
    124124            if conf.get("profiling.on", False): 
    125                 apps.append((base, profiler.make_app(_cpwsgi.wsgiApp))) 
    126 ##                apps.append((base, profiler.make_app(_cpwsgi.wsgiApp, aggregate=True))) 
     125                apps.append((base, profiler.make_app(_cpwsgi.wsgi_app))) 
     126##                apps.append((base, profiler.make_app(_cpwsgi.wsgi_app, aggregate=True))) 
    127127            else: 
    128                 apps.append((base, _cpwsgi.wsgiApp)) 
     128                apps.append((base, _cpwsgi.wsgi_app)) 
    129129##            # We could use the following line, but it breaks test_tutorials 
    130130##            apps.append((base, _cpwsgi.make_app(app))) 
    131131        apps.sort() 
  • _cpwsgi.py

    old new  
    112112                chunk = chunk.encode("ISO-8859-1") 
    113113            yield chunk 
    114114 
    115 def wsgiApp(environ, start_response): 
     115def wsgi_app(environ, start_response): 
    116116    """The WSGI 'application object' for CherryPy. 
    117117     
    118118    Use this as the same WSGI callable for all your CP apps. 
     
    196196            bind_addr = (conf('server.socket_host'), 
    197197                         conf('server.socket_port')) 
    198198         
    199         apps = [(base, wsgiApp) for base in cherrypy.tree.apps] 
     199        apps = [(base, wsgi_app) for base in cherrypy.tree.apps] 
    200200         
    201201        s = _cpwsgiserver.CherryPyWSGIServer 
    202202        s.__init__(self, bind_addr, apps, 
  • _cprequest.py

    old new  
    597597            request.handler = cherrypy.NotFound() 
    598598 
    599599 
    600 def file_generator(input, chunkSize=65536): 
     600def file_generator(input, chunk_size=65536): 
    601601    """Yield the given input (a file object) in chunks (default 64k).""" 
    602     chunk = input.read(chunkSize) 
     602    chunk = input.read(chunk_size) 
    603603    while chunk: 
    604604        yield chunk 
    605         chunk = input.read(chunkSize) 
     605        chunk = input.read(chunk_size) 
    606606    input.close() 
    607607 
    608608 
  • _cperror.py

    old new  
    4646    """Exception raised when the request should be redirected. 
    4747     
    4848    The new URL must be passed as the first argument to the Exception, e.g., 
    49         cperror.HTTPRedirect(newUrl). Multiple URLs are allowed. If a URL 
     49        cperror.HTTPRedirect(new_url). Multiple URLs are allowed. If a URL 
    5050        is absolute, it will be used as-is. If it is relative, it is assumed 
    5151        to be relative to the current cherrypy.request.path. 
    5252    """ 

Hosted by WebFaction

Log in as guest/cpguest to create tickets