[ZPT] reversing a repeat

Phil Harris phil.harris@zope.co.uk
Sat, 23 Jun 2001 01:23:47 +0100


Hi all,

I have this bit of code:

    <div metal:fill-slot="main" id="main">
      <span tal:repeat="item here/Catalog">
        <div class="articleTitle">
          <a class="articleLink" href="" tal:attributes="href item/linkUrl"
tal:content="item/Title">link text</a>
          <div class="email">
            <span tal:replace="here/bobobase_modification_time">timedate
here</span>
            (<a href="mailto:" tal:attributes="href python:'mailto' +
item.email" tal:content="item/author">author</a>)
          </div>
        </div>
        <div class="article" tal:content="item/content"> </div>
        <br />
      </span>
    </div>


Which works fine, but I would like to reverse the results from the call to
Catalog.

I can't see any way, out of the box, that 'repeat' can reverse the results.

Any ideas?

tia

Phil
phil.harris@zope.co.uk