[Zope-dev] Re: [Zope] Question about dtml-in

2000-11-05 Thread Dieter Maurer
Sean McGrath writes: ... "dtml-in" treats sequences of two element tuples specially ... You are right. This is to support the frequent case of iterating over item sequences. There should be a "dtml-in" argument to switch off this special treatment. If I had your problem, I would go for such a

Re: [Zope] Question about dtml-in

2000-11-05 Thread Ender
Sean McGrath wrote: Hello all, I have a question about the dtml-in tag. When it is iterating over a sequence, and the items in the sequence happen to be tuples containing exactly two items, then dtml-in places the first item from the sequence in sequence-key, and the second item goes in

Re: [Zope] Question about dtml-in

2000-11-05 Thread Dieter Maurer
Sean McGrath writes: ... "dtml-in" treats sequences of two element tuples specially ... You are right. This is to support the frequent case of iterating over item sequences. There should be a "dtml-in" argument to switch off this special treatment. If I had your problem, I would go for such a

[Zope] Question about dtml-in

2000-11-03 Thread Sean McGrath
Hello all, I have a question about the dtml-in tag. When it is iterating over a sequence, and the items in the sequence happen to be tuples containing exactly two items, then dtml-in places the first item from the sequence in sequence-key, and the second item goes in sequence-item. If the

[Zope] Question about dtml-in sorting

2000-05-30 Thread Patrick J.M. Keane
Does sort only sort in one direction? I am looking to sort news items so that the newest items are on top, and when sorting on a date field, I get the opposite behaviour. Any easy way to reverse the sort order? Thanks pk ___ Zope maillist -

Re: [Zope] Question about dtml-in sorting

2000-05-30 Thread Rik Hoekstra
"Patrick J.M. Keane" wrote: Does sort only sort in one direction? I am looking to sort news items so that the newest items are on top, and when sorting on a date field, I get the opposite behaviour. Any easy way to reverse the sort order? Yes, by adding reverse to the sort tag ;-)

Re: [Zope] Question about dtml-in sorting

2000-05-30 Thread Jason Spisak
Patrick J.M. Keane writes: Does sort only sort in one direction? I am looking to sort news items so that the newest items are on top, and when sorting on a date field, I get the opposite behaviour. Any easy way to reverse the sort order? Thanks pk dtml-in MyItems sort=whatever reverse

Re: [Zope] Question about dtml-in sorting

2000-05-30 Thread Nils Kassube
Patrick J.M. Keane wrote: I get the opposite behaviour. Any easy way to reverse the sort order? Well, I found there _is_ a reverse attribute to the dtml-in tag, but it's not documented in my version (2.1.0, 1999/12/17) of the DTML Reference. It works. Cheers, Nils