Re: sec_is_open_to_public()/sec_is_closed_to_public()

Guido Wesdorp <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Marc Petitmermet wrote:

> how is infrae using these functions? i egrep through  the complete 
> silva source code and lo and behold these functions are  nowhere to be 
> found! did i stumble upon some obsolete functions? i'm  lost here. any 
> advise?
>
All viewer-role related functionality has been moved to an adapter 
(adapters/security.py), but it looks like that doesn't contain specific 
methods to find out whether and object is publically accessible 
according to its view restriction settings. The information can be found 
using the adapter, but that requires some more work and involves calling 
non-public methods. We'll add a couple of publically accessible methods 
that perform the same role as the old ones as soon as we have time (and 
update API.txt).

Cheers,

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