Ticket #547: last_to_lower_case.patch
-
test/modpy.py
old new 61 61 PythonFixupHandler cherrypy.test.modpy::wsgisetup 62 62 PythonOption testmod %s 63 63 PythonHandler modpython_gateway::handler 64 PythonOption wsgi.application cherrypy._cpwsgi::wsgi App64 PythonOption wsgi.application cherrypy._cpwsgi::wsgi_app 65 65 PythonDebug On 66 66 """ 67 67 -
test/benchmark.py
old new 295 295 SetHandler python-program 296 296 PythonFixupHandler cherrypy.test.benchmark::startup_modpython 297 297 PythonHandler modpython_gateway::handler 298 PythonOption wsgi.application cherrypy._cpwsgi::wsgi App298 PythonOption wsgi.application cherrypy._cpwsgi::wsgi_app 299 299 PythonDebug On 300 300 %s%s 301 301 </Location> -
test/helper.py
old new 122 122 if base == "/": 123 123 base = "" 124 124 if conf.get("profiling.on", False): 125 apps.append((base, profiler.make_app(_cpwsgi.wsgi App)))126 ## apps.append((base, profiler.make_app(_cpwsgi.wsgi App, aggregate=True)))125 apps.append((base, profiler.make_app(_cpwsgi.wsgi_app))) 126 ## apps.append((base, profiler.make_app(_cpwsgi.wsgi_app, aggregate=True))) 127 127 else: 128 apps.append((base, _cpwsgi.wsgi App))128 apps.append((base, _cpwsgi.wsgi_app)) 129 129 ## # We could use the following line, but it breaks test_tutorials 130 130 ## apps.append((base, _cpwsgi.make_app(app))) 131 131 apps.sort() -
_cpwsgi.py
old new 112 112 chunk = chunk.encode("ISO-8859-1") 113 113 yield chunk 114 114 115 def wsgi App(environ, start_response):115 def wsgi_app(environ, start_response): 116 116 """The WSGI 'application object' for CherryPy. 117 117 118 118 Use this as the same WSGI callable for all your CP apps. … … 196 196 bind_addr = (conf('server.socket_host'), 197 197 conf('server.socket_port')) 198 198 199 apps = [(base, wsgi App) for base in cherrypy.tree.apps]199 apps = [(base, wsgi_app) for base in cherrypy.tree.apps] 200 200 201 201 s = _cpwsgiserver.CherryPyWSGIServer 202 202 s.__init__(self, bind_addr, apps, -
_cprequest.py
old new 597 597 request.handler = cherrypy.NotFound() 598 598 599 599 600 def file_generator(input, chunk Size=65536):600 def file_generator(input, chunk_size=65536): 601 601 """Yield the given input (a file object) in chunks (default 64k).""" 602 chunk = input.read(chunk Size)602 chunk = input.read(chunk_size) 603 603 while chunk: 604 604 yield chunk 605 chunk = input.read(chunk Size)605 chunk = input.read(chunk_size) 606 606 input.close() 607 607 608 608 -
_cperror.py
old new 46 46 """Exception raised when the request should be redirected. 47 47 48 48 The new URL must be passed as the first argument to the Exception, e.g., 49 cperror.HTTPRedirect(new Url). Multiple URLs are allowed. If a URL49 cperror.HTTPRedirect(new_url). Multiple URLs are allowed. If a URL 50 50 is absolute, it will be used as-is. If it is relative, it is assumed 51 51 to be relative to the current cherrypy.request.path. 52 52 """

