[Zope-dev] printing characters

Jonothan Farr jfarr@real.com
Wed, 10 May 2000 13:17:56 -0700


> The thing is if you embrace sequence-index in "" zope'll try to calc sequence
> minus index... and so you need to enclose the var name in _['varname']. Plus
> 32? coz this way they are ascii printable chars ;)

Or if what you want is:

0 1 2 3 4 ... 27

Then just:

<dtml-in "_.range(28)">
<dtml-var sequence-index>
</dtml-in>

will work.

If you want:

1 2 3 4 5 ... 28

Then try:

<dtml-in "_.range(1,29)">
<dtml-var sequence-index>
</dtml-in>

--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998