RE: [Zope] newbie batching question
If you are using a DTML Document, you will need to "get out" of it's namespace: <dtml-var standard_html_header> <dtml-with "PARENTS[0]"> <dtml-var "absolute_url()"> <dtml-in expr="objectValues('Image')" size=10 start=query_start> <p>display for any items found: <dtml-var sequence-item></p> </dtml-in> </dtml-with> <dtml-var standard_html_footer> A DTML Method doesn't require the with statements. Let me know if it still doesn't work. Troy -----Original Message----- From: Chris Cioffi [mailto:other@stopthesanity.org] Sent: Wednesday, February 21, 2001 11:28 AM To: Farrell, Troy Subject: Re: [Zope] newbie batching question It sounded good, but didn't work. So I'm not facing some silly version bug: -Zope 2.3.0 (Linux tarball from the Zope.org website) -Mandrake Linux 7.2 (fully patched) in high security mode -Python 1.5.2 -'rpm -qa | grep python | sort' reports python-1.5.2-12mdk python-devel-1.5.2-12mdk python-docs-1.5.2-12mdk pythonlib-1.23-2mdk rpm-python-3.0.5-27mdk Anyone have another idea? Chris ----- Original Message ----- From: "Farrell, Troy" <troy.farrell@wilcom.com> To: "'Chris Cioffi'" <zope@stopthesanity.org>; <zope@zope.org> Sent: Tuesday, February 20, 2001 10:50 AM Subject: RE: [Zope] newbie batching question
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 )
_______________________________________________ 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 )
participants (1)
-
Farrell, Troy