[Zope] More dtml-in sequenceing and cocatenation

Jaroslav Lukesh lsh@wo.cz
Tue, 1 Jul 2003 07:49:40 +0200


: Odes=EDlatel: hpinson@indepthl.com
: Thanks Dieter. I knew it was a syntax error.  I'm really close I=20
: think:
:=20
: >> You probably want computed variable access:
: >>    "_['math_' + _['sequence-number']] =3D=3D 1"
:=20
: Results in the Zope error:
:=20
: Error Type: TypeError
: Error Value: cannot add type "int" to string
:=20
: This seems odd.  I thought + was the python overloaded string=20
: cocatenation symbol, i.e. 'hel'+'lo' is 'hello'?  I am playing with=20
: using the python str() function, but no results yet. =20

Did you try

"_[str('math_') + str(_['sequence-number'])] =3D=3D 1"

?

JL.