cherrypy._cpchecker

Classes

class cherrypy._cpchecker.Checker

A checker for CherryPy sites and their mounted applications.

When this object is called at engine startup, it executes each of its own methods whose names start with check_. If you wish to disable selected checks, simply add a line in your global config which sets the appropriate method to False:

[global]
checker.check_skipped_app_config = False

You may also dynamically add or replace check_* methods in this way.

check_app_config_brackets()
Check for Application config with extraneous brackets in section names.
check_app_config_entries_dont_start_with_script_name()
Check for Application config with sections that repeat script_name.
check_compatibility()
Process config and warn on each obsolete or deprecated entry.
check_config_namespaces()
Process config and warn on each unknown config namespace.
check_config_types()
Assert that config values are of the same type as default values.
check_localhost()
Warn if any socket_host is ‘localhost’. See #711.
check_site_config_entries_in_app_config()
Check for mounted Applications that have site-scoped config.
check_skipped_app_config()
Check for mounted Applications that have no config.
check_static_paths()
Check Application config for incorrect static paths.
formatwarning(message, category, filename, lineno, line=None)
Function to format a warning.
on
If True (the default), run all checks; if False, turn off all checks.

Table Of Contents

Previous topic

Reference Manual

Next topic

cherrypy._cpconfig

This Page