Re: request.model in public layout

Roman Joost <rj-w5oghCfH6z/[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Organization gocept GmbH & Co. KG
Message-ID <[email protected]>
Hi Jan-Wijbrand,

On Tue, Apr 04, 2006 at 01:17:38PM +0200, Jan-Wijbrand Kolman wrote:
> This fix involves an explicit delete of the model from the request, when the public layout is 
> rendered. Having the model attached to the request resulted in a cyclic reference of a type 
> that could not be garbage collected by Python.
> 
> The default Silva public layout templates make no use of the model that used to be available 
> and having the model on the request for public rendering was never intended to be a public 
> API. In public renderings, the content object being rendered is available through the 
> 'context' namespace.
Maybe I just got it totally wrong here, but is the model deleted from the request
*after* the view is rendered, or when does this happen?

SilvaObject still adds the model to the request and I still run into
problems if I try to render public views without providing the model as
a request attribute.

Greetings,
-- 
Róman Joost

gocept gmbh & co. kg ­ Forsterstrasse 29 ­ 06112 Halle/Saale
fon +49 (0)345 122 98 89 2

_______________________________________________
silva-dev mailing list
[email protected]
https://infrae.com/mailman/listinfo/silva-dev
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEMn5X8CscaEkpx0IRAjYlAJ9HgHLAIZa9TssM75b7PJfC2cZTzQCdFQjg
wBynfE+N+vuEp3ddHwABiig=
=9H0I
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.