[Tutor] string replacements using dictionaries

Victor R. Cardona vcardon@siue.edu
Fri, 21 Dec 2001 11:56:45 -0600


--ReaqsoxgOBHFXBhH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi everyone,

I am having a bit of a problem with string replacements. I am writing a
cgi script that reads in a html file and subtitutes all of the '%(key)s'
markers for the values in a dictionary. There are five such markers
containing four different keys. The dictionary has values assigned for
the four keys. However, when I run the script I get "TypeError: Not
enough arguements for format string" Does anyone have any idea as to
what I am doing wrong?

Thanks,
Victor
--=20
Victor R. Cardona
Powered by SuSE Linux 7.1 (i386) Professional
GPG key ID E81B3A1C
Key fingerprint =3D 0147 A234 99C3 F4C5 BC64  F501 654F DB49 E81B 3A1C

--ReaqsoxgOBHFXBhH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8I3fdZU/bSegbOhwRAjdcAKCDYAfNf3k4/XrY3Zak7bccfogVxACeLXVW
rvTji5AonIvM3Zp6hJX5AZI=
=vrcE
-----END PGP SIGNATURE-----

--ReaqsoxgOBHFXBhH--