[Zope] A particular image takes a long time to load

Pierre-Julien Grizel grizel@xlogx.com
Sat, 22 Apr 2000 04:44:07 +0200


Andres Corrada wrote:
> 
> Hi,
>         I have a images folder on my website that I use for link images. One
> particular image stalls the download of the site and more likely than
> not, does not get rendered. I've deleted and reloaded the image a couple
> of times but the problem persists with this image. Any clues?
> 
> ------------------------------------------------------
> Andres Corrada-Emmanuel   Email: andres@corrada.com
> ------------------------------------------------------
> 

I've got this problem too, and the involved images are the one I use to change
language... The dtml code is the following :
(where langlist is a lines property containing, for example, {'en', 'fr'}, and
my pictures are named flag_fr and flag_en, located in my root folder).


<TR><TD>
	<TABLE WIDTH="100%">
		<TR>
		<dtml-in langlist>
			<dtml-call "REQUEST.set ('flag', 'flag_' + _['sequence-item'])">
			<dtml-if "_['sequence-item'] <> Language">
				<TD ALIGN=CENTER>
					<A HREF=<dtml-var "SwitchLang (GetQHREF (REQUEST, REQUEST.form), Language,
_['sequence-item'])">><dtml-var "_[flag].tag (border=0)"></A>
				</TD>
			<dtml-else>
				<!-- Langue courante -->
				<TD WIDTH="50%" ALIGN=CENTER>
					<dtml-var "_[flag].tag (border=0)">
				</TD>
			</dtml-if>
		</dtml-in>
		</TR>
	</TABLE>
</TD></TR>


Regards,


P.-J.

P.-J.