[Zope3-Users] Are views destroyed after processing

Lennart Regebro regebro at gmail.com
Wed Apr 5 08:28:41 EDT 2006


On 4/5/06, Reinhold Strobl <reinhold.strobl at gmx.net> wrote:
> What about the creation and destroying of views? Are they always created new,
> when a request receives? And then afterwards, are they destroyed? Or are they
> one created at program start?
>
> Well, since the constructor is called, I think they are always created new,

Correct.

> but is there any documentation about that?

Well... Views are adapters, and that's how adapters work. Otherwise
you would have to have a pool of them that you need to keep track of
and know which ones are used and the reinitialize them and that would
just be complicated and error prone and have exactly no benefit. :)

--
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the Zope3-users mailing list