[Zope] Acquisition Problem

Tane Piper tane@zzict.nl
Mon, 23 Jul 2001 14:28:22 +0100


Hi guys,

were having a little problem with some code we are writing for our website.
We have a method that uses the bobobase to locate the newest image file in a
directory and create a thumbnail of that image.  We then want to load this
method into our main page to show the thumbnail.

The code for the method is as follows:

<dtml-let images="objectItems('Image')">
    <dtml-in images sort="bobobase.modification_time()" size=1>
        <dtml-let item=sequence-item>
            <img src="<dtml-var "item.id()">" width='150'
heigth='113'></img>
        </dtml-let>
    </dtml-in>
</dtml-let>

This works fine when you view it, and it also with the below code IN the
folder, but we can't get it to work outside the folder:

<html>
<dtml-var thumbnail>
</html>

and if we try this:

<html>
<dtml-var "folder.thumbnail">
</html>

with folder as the path to the folder, it just renders the DTML code.

Can anyone provide a suggestion on how to solve this?

Thanks

Tane Piper
Lead Designer
http://www.legiongame.nl