[Zope] filtering Photo objects in Photofolder - View

Ron Bickers rbickers-expires-1055434268.e0f6a3@logicetc.com
Thu, 5 Jun 2003 12:11:16 -0400


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Roel
> Van den Bergh
> Sent: Thursday, June 05, 2003 7:45 AM

> Now here comes my problem: prevPhoto() and nextPhoto() are
> retrieved from a
> python script and calculated from the image shown at that moment.
> How can I resolve 'PREV' & 'NEXT' filtering with the metatag?
> If I use if - elif -else - /if 'PREV' and/or 'NEXT' are not shown if they
> have an invalid metatag.
>
> Is there a solution to this?

The nextPhoto and prevPhoto methods are simple convenience methods, but they
don't do any filtering.  You'll need to create your own next/prev scripts to
filter out what you need and return the proper next/prev object reference.
I suggest the nextPhoto/prevPhoto source in Photo.py as a good starting
point.
_______________________

Ron Bickers
Logic Etc, Inc.