[Zope-CMF] skip_unauthorized behavioure locks out sequence-start and/or sequence-end

Roel Van den Bergh roel@planetinterior.com
Mon, 21 Oct 2002 15:49:25 +0200


we upgraded an existing CMF 1.2 site to 1.3 with not to much problems.

Now we implemented the "new" skip_unauthorized to filter unwanted folders.If
you do not have to filter the first and/or the last entry of a folder
listing everything is rendered as it should, so we didn't notice it
immediatly. But apparantly if you filter first and/or last object
sequence-start and/or sequence-end aren't valid any more.

We worked around this by placing the necessary tags above and below the
filter but this solution isn't as elegant as it used to be :-(

...
<table width="100%" border="2" cellspacing="0" cellpadding="0"
bordercolor="#FF6600">
 <tr>
  <td>
<table border="0" cellspacing="0" cellpadding="2" nowrap>
 <tr bgcolor="#FF9900">
  <td></td>
  <td><font size="2"><b>Folders</b></font></td>
 </tr>

<dtml-in expr="objectValues( [ 'Folder', 'Portal Folder', 'CMF Collector',
'Photo Folder' ] )"
         skip_unauthorized
         sort="title_or_id">

<dtml-comment>
<dtml-if sequence-start>
<table width="100%" border="2" cellspacing="0" cellpadding="0"
bordercolor="#FF6600">
 <tr>
  <td>
<table border="0" cellspacing="0" cellpadding="2" nowrap>
 <tr bgcolor="#FF9900">
  <td></td>
  <td><font size="2"><b>Folders</b></font></td>
 </tr>
</dtml-if>
</dtml-comment>
...

Also to be able to use the skip-unauthorized functionality you have to
remove the 'authenticated' role in the 'security' panel wich removes the
functionality of having the loggin page displayed when entering a 'closed'
CMF site. Is there a work-around for this problem too, because we haven't
found one (yet)?

Any suggestions?
TIA, R.