[Zope] 'creating' a variable from sequence-item

Tony McDonald tony.mcdonald@ncl.ac.uk
Thu, 29 Jul 1999 09:11:20 +0100


>
><dtml-in "range(numquestions)">
>KEY: <dtml-var "'answer%d' % _['sequence-item']">
>VALUE: <dtml-var "_['answer%d' % _['sequence-item']]">
></dtml-in>


>Cheers for this Andreas, it works really well (I had to use a %s 
>though, as I was getting problems with integers & strings).


> > yikes! I *must* be doing something dumb here :)
>Not really. You just encountered a thing that is seldom needed in standard
>Zope I'd assume.

That's good news, I shall probably write an external method for 
it...eventually.

ta
tone.
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2