[Zope] Parse multiple folder

Dieter Maurer dieter@handshake.de
Sun, 5 Aug 2001 21:24:30 +0200 (CEST)


Jan Ulrich Hasecke writes:
 > 1. Is it possible to use something like
 > 
 >         <dtml-with [1900-2000]>
<dtml-in expr="_.range(1900,2000)">
  <dtml-with expr="_.getitem(`_['sequence-item']`)">
    ....
  </dtml-with>
</dtml-in>

 > 2. How can I make a random textlist. I tried to do somethine like
 > 
 >         <dtml-with randomline>
 >         <dtml-var textliste>
 >         </dtml-with>
 > 
 > where randomline is the Product from phd.
I do not know "randomline", but you can look at
the module "whrandom" (available through "_").
It should contain functions you can use.

 > Is it possible to call dtml-with with a random value so that I get a
 > list of a random folder?
Sure, similar to the above.


Dieter