buffalob wrote:
> I'm very new to CP, and have a confusion about when
> "cherrypy.engine.block()" should be called
and when
> cherrypy.quickstart is sufficient (which apparently
does not call
> engine.block).
>
> In the official most recent CP tutorials (http://www.cherrypy.org/
> browser/trunk/cherrypy/tutorial),
> I see that Tutorial 1 (tut01_helloworld.py) calls
> cherrypy.quickstart(), but Tutorial 2
(tut02_expose_methods.py)
> instead calls this sequence:
>
> cherrypy.server.quickstart()
> cherrypy.engine.start()
> cherrypy.engine.block()
>
> In the page, it says the cherrypy.quickstart function
is as follows,
> which seems to not contain a call to engine.block():
>
> def quickstart(root, script_name="",
config=None):
> if config:
> cherrypy.config.update(config)
> tree.mount(root, script_name, config)
> server.quickstart()
> engine.start()
If you mean http://www.c
herrypy.org/wiki/UpgradeTo30, that was incorrect
(and I've fixed it now). The "cherrypy.quickstart"
function does indeed
call engine.block().
Robert Brewer
System Architect
Amor Ministries
fumanchu amor.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|