[Zope] Boolean dtml redux

Steve Drees drees@the-bridge.net
Tue, 3 Jul 2001 15:33:07 -0500


> <dtml-in expr="_[foldername].objectValues()"
> sort="bobobase_modification_time"
> reverse>
> <dtml-unless "_['id']=='index_html'">
> <li>
> <a href="<dtml-var absolute_url>"><dtml-var title></a><br>
> Maintained by <dtml-var maintainer missing="No maintainer">. <br><dtml-var
> description missing="No description."> Last revision date
> <dtml-var version_date
> missing="unknown">.
> </dtml-unless>
> </dtml-in>


ugh.
this looks like a good place for a python script.



> Suggestions? Please assume *no* programming. It doesn't help to make
> vague suggestions, as I have plenty of those and they don't seem to be
> helping. I'm looking for *exact* syntax of a line that would replace
> that one problem line.

if you insist, try this.

<untested>

<dtml-in expr="_[foldername].objectValues()"
sort="bobobase_modification_time" reverse>
  <dtml-unless "_.getitem(_['sequence-item']).index_hide">
    blah blah blah
  </dtml-unless>
</dtml-in>

</untested>