summaryrefslogtreecommitdiff
path: root/cherrypy/lib/profiler.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/lib/profiler.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/lib/profiler.py')
-rw-r--r--cherrypy/lib/profiler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cherrypy/lib/profiler.py b/cherrypy/lib/profiler.py
index 004221c0..f6e535e7 100644
--- a/cherrypy/lib/profiler.py
+++ b/cherrypy/lib/profiler.py
@@ -136,6 +136,7 @@ def serve(path=None, port=8080):
'session.storageType': "ram",
})
cherrypy.server.start()
+ cherrypy.engine.start()
if __name__ == "__main__":