from cherrypy import _cpconfig, _cplogging, _cprequest, _cpwsgi, tools
from cherrypy.lib import http as _http
class Application(object):
__metaclass__ = cherrypy._AttributeDocstrings
root = None
root__doc = '\n The top-most container of page handlers for this app. Handlers should\n be arranged in a hierarchy of attributes, matching the expected URI\n hierarchy; the default dispatcher then searches this hierarchy for a\n matching handler. When using a dispatcher other than the default,\n this value may be None.'
config = { }
config__doc = "\n A dict of {path: pathconf} pairs, where 'pathconf' is itself a dict\n of {key: value} pairs."
namespaces = _cpconfig.NamespaceSet()
toolboxes = {
'tools': cherrypy.tools }
log = None
log__doc = 'A LogManager instance. See _cplogging.'
wsgiapp = None
wsgiapp__doc = 'A CPWSGIApp instance. See _cpwsgi.'
script_name__doc = '\n The URI "mount point" for this app. A mount point is that portion of\n the URI which is constant for all URIs that are serviced by this\n application; it does not include scheme, host, or proxy ("virtual host")\n portions of the URI.\n \n For example, if script_name is "/my/cool/app", then the URL\n "http://www.example.com/my/cool/app/page1" might be handled by a\n "page1" method on the root object.\n \n The value of script_name MUST NOT end in a slash. If the script_name\n refers to the root of the URI, it MUST be an empty string (not "/").\n \n If script_name is explicitly set to None, then the script_name will be\n provided for each call from request.wsgi_environ[\'SCRIPT_NAME\'].\n '
apps__doc = '\n A dict of the form {script name: application}, where "script name"\n is a string declaring the URI mount point (no trailing slash), and\n "application" is an instance of cherrypy.Application (or an arbitrary\n WSGI callable if you happen to be using a WSGI server).'