[Zope] dtml-in with skip_unauthorized and sequence-end
Jens Wolk
jewo_lists@gmx.de
Tue, 26 Mar 2002 20:56:38 +0100
Hi everybody,
in a folder I have two other folders with the titles "foo" and "bar". The
security settings for the "foo" folder define, that the Anonymous role
doesn't have the "Access contents information".
Now, a user with the role Anonymous calls a dtml method with the following
code snippet (Zope 2.5):
<dtml-in expr="objectValues( [ 'Folder', ] )"
skip_unauthorized sort="Title">
<dtml-if sequence-start>
<ul>
</dtml-if>
<li>
...
</li>
<dtml-if sequence-end>
</ul>
</dtml-if>
</dtml-in>
That way, the <dtml-if sequence-end> block seems never to get executed. The
reason probably is that "foo" is the last item and therefore the whole
dtml-in is skipped.
How can I correct this?
What I need is a way to list all folders except those which the user hasn't
access to.
Yours. Jens