[Zope] Choice of the sorting key of a dtml-in tag

Benoit DOMINIAK benoit.dominiak@makinacorpus.com
Fri, 13 Jul 2001 15:03:22 +0200


Hi again,

I'd like to make a page with a list of my Zclass instances and to be able to 
sort them by different key. I tryed with this code :

<dtml-if "REQUEST.has_key('skey')">
<dtml-else>
<dtml-call "REQUEST.set('skey', 'bobobase_modification_time reverse')">
</dtml-if>
<dtml-in "objectValues(['article'])" size=3 sort=skey start=query_start>

But it doesn't work : instances are not sorted correctly...

Any idea ?

Benoit Dominiak
Web Developper
Makina Corpus
21 Darmouth Street
London, SW1H 9BP
Tel: +44 (0)20 7304 7044
Fax: +44 (0)20 7304 7034
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.