Go to Google Groups Home    cherrypy-users
Re: [cherrypy-users] application scoped objects

Paweł Stradomski <pstradom...@gmail.com>

W liście qwcode z dnia środa 24 czerwca 2009:

> In the java servlet container world, you have the ServletContext hash
> that provides a place to put "application scope" objects.

> Is there such a thing in CherryPy?  Is it the "Application" object?

> Handler classes (including the root) are instantiated per Request,
> correct?

If you are using the default dispatcher then not, why would they? You pass an
instance to mount(), not class, so it would not even be possible to
instantiate them per-request.

--
Paweł Stradomski