[Zope] problems rendering objects stored in the local file system

Andreas Jung lists at andreas-jung.com
Thu Apr 28 00:14:07 EDT 2005



--On Mittwoch, 27. April 2005 19:57 Uhr -0700 Dennis Allison 
<allison at shasta.stanford.edu> wrote:

>
> In the local file system (that is, the Linux file system to be explicit) I
> have a collection of directories each containing an index.html file
> consisting of HTML and a collection of image files (*.jpg, *.gif, *.swf)
> referenced by the HTML.  From a DTML object in the ZODB, I want to render
> the index.html and have it properly access the local image files.

The index.html has nothing to do with your stuff in the filesystem. You 
reference
images through an URL in the <img src...attribute. And the method or 
whatever
is located behind the URL is in charge to send the image data to the client
(it does not matter where the image is actually stored (filesystem, memory,
moon).  Bascially the method is called (requested) from the client through
HTTP and it has to send the data + the corresponding HTTP header telling the
client: I am an image of type XXX.

-aj


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20050428/8afe38ec/attachment.bin


More information about the Zope mailing list