Re: request.model in public layout

Jan-Wijbrand Kolman <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Organization Infrae
Message-ID <[email protected]>
Roman Joost wrote:
> 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?

I think having a quick look at:

   https://infrae.com/viewvc/Silva/trunk/SilvaObject.py?r1=19164&r2=19397

will answer your question. The model is deleted from the request after 
the public view for the object have been rendered and the rendered 
result is returned to the calling layout.

> 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.

Sorry, I'm not sure if I understand this... where/how are you providing 
a model to the request?


kind regards,
jw

-- 
Jan-Wijbrand Kolman
[email protected]
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.