[Tutor] Sporadical bug?
Sharriff Aina
NHYTRO@compuserve.com
Tue, 17 Jul 2001 09:18:06 -0400
Hi tutors!
here is a snippet of my ftp upload code:
if ftpurls:
....global finalhtml
....for j, k in zip(allimagetags, modified_image_tags):
........finalhtml =3D string.replace(usercontent, j, k)
###
where "allimagetags" is a list of image tags like
c:\windows\temp\myimage.jpg
modified_image_tags is a list of modified "allimagetags" example
..\users\myimage.jpg
usercontent is a string block of HTML, this block also contains all imag=
e
tags.
My problem is, upon storing "finalhtml" in a database, I noticed that the=
image tags were not being properly replaced. If allimagetags contained 3
image tags, all 3 are stored in the database but only the 3 is really
replaced in the string block "usercontent" .
Am I using the "zip" commabd wrongly?
Thanks
Sharriff =