<DIV>I know, I'm flooding the list ...</DIV>
<DIV>I use images inside my reports, so I have to open PIL-image objects inside my product.</DIV>
<DIV>Everything is fine, but I must use the full path, like /Zope-Instance/Products/foobar/image/blah.png, and this is a problem, because the product will have a different path when put in production.</DIV>
<DIV>My solution is to have a class variable to use, like:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; imagepath = "/Zope-Instance/.../image"</DIV>
<DIV>&nbsp;</DIV>
<DIV>and then use that variable to build the path, but I think it's ugly.</DIV>
<DIV>How do you solve this problem and just use 'image/blah.png' just like ZPTs, knowing that all image files will be stored in an "image" subdirectory of the product ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>TIA,</DIV>
<DIV>&nbsp; ngw</DIV><p>
                <hr size=1><font face="Arial" size="2"><a href="http://us.rd.yahoo.com/mail_it/taglines/*http://it.beta.messenger.yahoo.com"><b>Yahoo! Messenger</b></a>: chiamate gratuite in tutto il mondo </font>