summaryrefslogtreecommitdiff
path: root/cherrypy/test/modpy.py
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2006-05-04 07:44:59 +0000
committerRobert Brewer <fumanchu@aminus.org>2006-05-04 07:44:59 +0000
commit001f3929036def5a11f114d99e1ce21772278f36 (patch)
treea6fcd0966a8b2f5efb9ca0113c407a5ea1d521f2 /cherrypy/test/modpy.py
parenta3ee2c7add299e1ce732c8f7ec13bfe315c5a54a (diff)
downloadcherrypy-git-001f3929036def5a11f114d99e1ce21772278f36.tar.gz
Separated cherrypy.server (HTTP) from cherrypy.engine (app):
1. Most CP apps must now make both a call to cherrypy.server.start(server=None) and a call to cherrypy.engine.start(blocking=True). 2. The on_start_server_list and on_stop_server_list are now on_start_engine_list and on_stop_engine_list. 3. "start_with_callback" is now an attribute of Engine. So is "request". 4. Server.start now takes a single "server" arg, which can be a server instance, a string (fully qualified class name), or None (to start the default WSGI server). 5. Server still has a wait method, but otherwise does no blocking.
Diffstat (limited to 'cherrypy/test/modpy.py')
-rw-r--r--cherrypy/test/modpy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/test/modpy.py b/cherrypy/test/modpy.py
index 1e894395..3b3b9305 100644
--- a/cherrypy/test/modpy.py
+++ b/cherrypy/test/modpy.py
@@ -85,7 +85,7 @@ def handler(req):
"server.environment": "production",
})
m.setup_server()
- cherrypy.server.start(init_only=True, server_class=None, server=None)
+ cherrypy.engine.start(blocking=False)
from mod_python import apache
return apache.OK