[Zope] newbie-ish dmtl-in question
Russell Hires
rhires@earthlink.net
Sun, 26 Aug 2001 14:06:48 -0400
> Hi, Russell
>
> <dtml-in> operates on list-ish things, which means it barfs on integers
> like your variable "iterations".
> Fortunately, python to the rescue: "_.range(iterations)" makes a
> list-ish thing with "iterations" number of things from zero to
> "iterations -1". Look in any python reference for range() if you need
> more, and check the zope docs, too because _.range() is limited in zope
> for a fairly obvious reason.
>
> home, home on the range()
>
> -- Jim Washington
This answer is great! I guess the thing that puts me off about all the
dtml/python stuff is the syntax of stuff I've never really seen in another
programming language: an underscore then a dot to start the function off. I
find that to be very strange.
Thanks for the help!
Russell