| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Application
A CherryPy Application.
Servers and gateways should not instantiate Request objects directly.
Instead, they should ask an Application object for a request object.
An instance of this class may also be used as a WSGI callable
(WSGI application object) for itself.
config [= {}]:
A dict of {path: pathconf} pairs, where 'pathconf' is itself a dict
of {key: value} pairs.
log [= None]:
A LogManager instance. See _cplogging.
root [= None]:
The top-most container of page handlers for this app. Handlers should
be arranged in a hierarchy of attributes, matching the expected URI
hierarchy; the default dispatcher then searches this hierarchy for a
matching handler. When using a dispatcher other than the default,
this value may be None.
script_name [= <property object at 0x1669320>]:
The URI "mount point" for this app. A mount point is that portion of
the URI which is constant for all URIs that are serviced by this
application; it does not include scheme, host, or proxy ("virtual host")
portions of the URI.
For example, if script_name is "/my/cool/app", then the URL
"http://www.example.com/my/cool/app/page1" might be handled by a
"page1" method on the root object.
The value of script_name MUST NOT end in a slash. If the script_name
refers to the root of the URI, it MUST be an empty string (not "/").
If script_name is explicitly set to None, then the script_name will be
provided for each call from request.wsgi_environ['SCRIPT_NAME'].
wsgiapp [= None]:
A CPWSGIApp instance. See _cpwsgi.
|
|||
|
__metaclass__ Metaclass for declaring docstrings for class attributes. |
|||
|
request_class An HTTP request. |
|||
|
response_class An HTTP Response, including status, headers, and body. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
root = None
|
|||
root__doc =
|
|||
config =
|
|||
config__doc =
|
|||
namespaces = cherrypy._cpconfig.NamespaceSet({})
|
|||
toolboxes = {'tools': cherrypy.tools}
|
|||
log = None
|
|||
log__doc = """A LogManager instance. See _cplogging."""
|
|||
wsgiapp = None
|
|||
wsgiapp__doc = """A CPWSGIApp instance. See _cpwsgi."""
|
|||
relative_urls = False
|
|||
script_name__doc =
|
|||
|
|||
|
script_name The URI "mount point" for this app. |
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
repr(x)
|
|
|||
root__doc
|
config__doc
|
script_name__doc
|
|
|||
script_nameThe URI "mount point" for this app. A mount point is that portion of the URI which is constant for all URIs that are serviced by this application; it does not include scheme, host, or proxy ("virtual host") portions of the URI. For example, if script_name is "/my/cool/app", then the URL "http://www.example.com/my/cool/app/page1" might be handled by a "page1" method on the root object. The value of script_name MUST NOT end in a slash. If the script_name refers to the root of the URI, it MUST be an empty string (not "/"). If script_name is explicitly set to None, then the script_name will be provided for each call from request.wsgi_environ['SCRIPT_NAME'].
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Aug 15 15:33:02 2009 | http://epydoc.sourceforge.net |