[Zope] newbie batching question

Farrell, Troy troy.farrell@wilcom.com
Tue, 20 Feb 2001 09:50:32 -0600


I could be mistaken, but change your line:
<dtml-in expr="objectValues('Images')" size=1 start=query_start>
to this:
<dtml-in expr="objectValues('Image')" size=1 start=query_start>

Right now, you are looking for the values of each 'Images', not each Image.

Troy


-----Original Message-----
From: Chris Cioffi [mailto:zope@stopthesanity.org]
Sent: Tuesday, February 20, 2001 9:37 AM
To: zope@zope.org
Subject: [Zope] newbie batching question


Hi all,

I'm starting to dig into learning Zope.  I read through a tutorial and have
been working a bit with the Zope Book and there's where I hit a problem.

I'm trying to modify the batching example to create a slideshow.

Here's what I've got:

<dtml-var standard_html_header>
<dtml-in expr="objectValues('Images')" size=1 start=query_start>
<p>display for any items found: <dtml-var sequence-item></p>
</dtml-in>
<dtml-var standard_html_footer>

(This is stripped down from the code in Chapter 7.)

I've put this in the same folder as the Images and all I get is the header
and footer text with a blank body.  (I'll get the sorting later...)

Any pointers would be welcome.

Thanks,

Chris

PS: I've seen the Photo product on the website however the archive is
corrupted everytime I download it...


_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )