Handles TurboGears tasks when the CherryPy server starts.
This performs the following initialization tasks (in given order):
* Loads the template engines and the base templates.
* Turns off CherryPy access and error logging to screen since
it disrupts with our own logging configuration. You can use
the qualnames cherrypy.access and cherrypy.error for these messages.
* Adds a static tool for TurboGears's static files (URL '/tg_static').
* Adds a static tool for TurboGears's JavaScript files (URL '/tg_js').
* Adds a tool for decoding request parameters to Unicode.
* Adds a virtual path dispatcher if enabled in the configuration.
* Adds CherryPy tools and hooks for visit tracking, identity,
database and decoding parameters into nested dictionaries.
* Registers the server with the Bonjour framework, if available.
* Calls 'turbogears.database.bind_metadata' when using SQLAlchemy.
* Loads all turbogears.extensions entry points and calls their
'start_extension' method.
* Calls the callables registered in 'turbogears.call_on_startup'.
* Starts the TurboGears scheduler if enabled in the configuration.
|