[Zope] Disappearing images in python product...

Dieter Maurer dieter@handshake.de
Sat, 12 May 2001 15:35:00 +0200 (CEST)


sean.upton@uniontrib.com writes:
 > I have a class in a python product that defines the following:
 > 	manage_admain = Globals.HTMLFile('dtml/editForm', globals())
 > 	editad_image = Globals.ImageFile('images/editad.png', globals())
 > 
 > Within dtml/editForm.dtml:
 > 	<dtml-var editad_image>
 > 
 > I used this to display an image within a managment interface page I had set
 > up.
 > 
 > The image won't load (it is missing).  This used to work, but at some point
 > recently became broken.  I'm not sure why; I can't pinpoint exactly when it
 > happened.  At some point, I changed the meta-type of this class, but I think
 > that is all I have really done...
If you apply "dtml-var" on an image object, it should produce
an "<img src='...'>" tag.

Did you look at this tag (in the HTML source)?
Is it correct?
If not, then the way it is wrong, can give you a hint.

If it would be correct, one would need to understand why
URL traversal can no longer reach it.

I assume, it is part of your product class?
Then it should be accessible by "<URL for your product instance>/editad_image".
Try to access it this way directly (entering the URL in the
browser directly). This should give you quite a good problem message..


Dieter