[Zope-CMF] Title() and page reloading - improved question :)

Pawel Lewicki lewicki@provider.pl
Mon, 19 Aug 2002 19:02:39 +0200


----- Original Message -----
From: "Chris Withers" <chrisw@nipltd.com>
To: "Pawel Lewicki" <lewicki@provider.pl>
Cc: <zope-cmf@zope.org>
Sent: Monday, August 19, 2002 1:52 PM
Subject: Re: [Zope-CMF] Title() and page reloading - improved question :)


> Pawel Lewicki wrote:
> > Everything is fine also when I log into CMF site despite the fact that
the
> > logged user has the same skin as default for anonymous users.
>
> This sounds like a security thing.
>
> I'm betting you experience problems when localFolder contains content
that's
> unpublished and so isn't anonymously viewable.
>
> This, because you're using cookie authentication, will result in a
redirect, but
> that somehow ends you up back at a page that's iterating over unpublished
> content, hence your 'page reloading' problem.
>
> What you need to do is put a LazyFilter around your
localFolder.contentItems, so
> that content you are not allowed to view is filtered out. See index_html
in
> zpt_generic for an example of how to do this...
>
> cheers,
>
> Chris

For those who keep the track the page to look into is index_html_utils :)
Thanx, it helped a lot - I mean the filter doesn't pass anything. Even
published documents. What does it mean? I use an argument skip='View'.

Pawel