[Zope] ZPT: using variables to reference variables

martin f krafft madduck@madduck.net
Fri, 2 May 2003 18:16:38 +0200


--/9DWx/yDrRhgMJTb
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi, it's me again.

how can i use a variable to name another variable before this
variable gets expanded? e.g.:

  myvar =3D 14;
  a =3D 'myvar';
  b =3D $($a); // b =3D 14

is this possible with ZPT and/or python?

i am stuck...

--=20
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
=20
keyserver problems? http://keyserver.kjsl.com/~jharris/keyserver.html
get my key here: http://madduck.net/me/gpg/publickey
=20
stay the patient course.
of little worth is your ire.
the network is down.

--/9DWx/yDrRhgMJTb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+spnmIgvIgzMMSnURAktlAJwLopj2cemRaGJQl6sEwfFlLjU38gCeNTz4
rocJUGtFMl0zYeOUvXYRTVc=
=EUc+
-----END PGP SIGNATURE-----

--/9DWx/yDrRhgMJTb--