Package turbogears :: Module startup

Module startup

source code

Things to do when TurboGears is imported.

Classes
  VirtualPathFilter
Filter that makes CherryPy ignorant of a URL root path.
  NestedVariablesFilter
  SimpleWSGIServer
A WSGI server that accepts a WSGI application as a parameter.
Functions
 
reloader_thread(freq)
Monkeypatch for the reloader provided by CherryPy.
source code
 
start_bonjour(package=None) source code
 
stop_bonjour() source code
 
startTurboGears()
Handles TurboGears tasks when the CherryPy server starts.
source code
 
stopTurboGears() source code
 
get_object_trail(object_path=None) source code
 
start_server(root) source code
Variables
  log = logging.getLogger("turbogears.startup")
  webpath = ''
  DNS_SD_PID = None
  call_on_startup = []
  call_on_shutdown = []
Function Details

reloader_thread(freq)

source code 

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.

startTurboGears()

source code 

Handles TurboGears tasks when the CherryPy server starts.

This adds the "tg_js" configuration to make MochiKit accessible. It also turns on stdlib logging when in development mode.