Chris Withers wrote:
> 
> Shane Hathaway wrote:
> > Looking at the code, it appears that if you pass a list of two-element
> > tuples, dtml-in will sort by the first element of each pair and render
> > the second element.
> 
> Unluckilly, that's exactly what I was passing it. But not the result I
> was looking for :S
> 
> > If, on the other hand, you pass a list of lists, it
> > won't try to sort that way.
> 
> Yeah, using just a list of length-two lists did the job :-)
> 
> Can I be brave enough to ask why it does this and where it's documented
> (other than the source ;-)

I don't know of any place.  It ought to be in the DTML reference.

Shane

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to