[Zope] how do I generate html for a given number of items

R. David Murray bitz@bitdance.com
Thu, 23 Mar 2000 18:18:35 -0500 (EST)


On Thu, 23 Mar 2000, sathya wrote:
> <for noOfTimes>
> <input  type="text" name= ...
> </for>
> </form>
> The dtml-in tag only accepts lists and such

Use the handy dandy Python range operator (generates a list of ascending
integers of a specified length):

<dtml-in "_.range(noOfTimes)">
  <input type="text" name="...
</dtml-in>

--RDM