[Zope] Sort by key in dtml-in loop over dictionary

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Sat, 15 Jun 2002 18:25:42 +0400


On Sat, Jun 15, 2002 at 03:46:33PM +0200, Pierre Godefroy wrote:
> I have a dtml-in loop which iterates over a dictionary :
> 
> <dtml-in collectionOfStr1s sort=title>

   If you are iterating over a dictionary this must be

<dtml-in collectionOfStr1s mapping sort=title>

   i.e. you are to indicate collectionOfStr1s is a dictionary (mapping).

Oleg.
-- 
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.