[silva-dev] request.model in public layout
Roman Joost
rj at gocept.com
Tue Apr 4 16:10:31 CEST 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.infrae.com/pipermail/silva-dev/attachments/20060404/38f903ac/attachment.pgp
More information about the silva-dev
mailing list