Home | Trees | Indices | Help |
|
---|
|
Things to do when the TurboGears server is started.
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
call_on_startup = []
|
|
call_on_shutdown = []
|
|
webpath = ''
|
Function Details |
Monkeypatch for the reloader provided by CherryPy. This reloader is designed to reload a single package. This is more efficient and, more important, compatible with zipped libraries that may not provide access to the individual files. |
Register the TurboGears server with the Bonjour framework. Currently only Unix-like systems are supported where either the 'avahi' daemon (Linux etc.) is available or the 'dns-sd' program (Mac OS X). |
Handles TurboGears tasks when the CherryPy server starts. This performs the following initialization tasks (in given order): * Turns off CherryPy's logging filter when in development mode * If logging is not already set up, turns on old-style stdlib logging. * Adds a static filter for TurboGears's static files (URL '/tg_static'). * Adds a static filter for TurboGears's JavaScript files (URL '/tg_js'). * Loads the template engines and the base templates. * Adds the CherryPy request filters to the root controller. * Adds the decoding filter to the root URL ('/') if enabled in the configuration. * 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. |
Handles TurboGears tasks when the CherryPy server stops. Ends all open database transactions, shuts down all extensions, calls user provided shutdown functions and stops the scheduler. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 19 17:17:55 2019 | http://epydoc.sourceforge.net |