Commits

Anonymous committed cfe30f1

Changed page UpgradeTo30

Comments (0)

Files changed (1)

 cherrypy.engine.start(blocking=False)
 }}}
 
-You can also now mount foreign WSGI applications on the CherryPy tree using {{{cherrypy.tree.graft(app, script_name)}}}. CherryPy will automatically pass these to the builtin WSGI server if you use it (which happens by default). If you want to use some other WSGI server with CherryPy, pass cherrypy.tree as the WSGI application, and it will do application dispatching for you to all mounted apps.
-
-In addition, the revised Server class can now control more than one HTTP server. See help(cherrypy.server) for more details.
-
-=== Handlers and Dispatch ===
-
-There's a new "dispatch" attribute on each Request object, which finds your page handler. If you don't like the way CP looks up page handlers by default, you can declare your own dispatcher (in config):
-
-{{{
-request.dispatch = my.custom.dispatcher.function
-}}}
-
-or
-
-{{{
-request.dispatch = my.custom.DispatchClass(blah)
-}}}
-
-The only requirement is that the right-hand-side be a callable: it takes a "path_info" argument and should set {{{cherrypy.request.handler}}} (a callable or None) and {{{request.config}}} (a dict).
-
-
 
 === Module changes ===
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.