[Zope] filtering Photo objects in Photofolder - View
Tue, 10 Jun 2003 14:29:13 +0200
I created an addon Product that patches the prev and next methods and has
another view. It works together with the OrderdObjectManager. So I can order
I'll try to post this as a Product on Zope.org this week.
> -----Original Message-----
> From: Roel Van den Bergh [mailto:email@example.com]
> Sent: Dienstag, 10. Juni 2003 09:12
> To: firstname.lastname@example.org; Ron Bickers
> Subject: RE: [Zope] filtering Photo objects in Photofolder - View
> Thanks for the tip.
> I already had a peek at Photo.py and found out how prevPhoto
> and next Photo were created. But playing with this code is a
> bit "out of my leage" with no starting clues.
> Maybe if I had a week ar two to spare I might get around with
> it. But I can't get them to pay me for two weeks "on the job
> training" :-( . WOuld be nice if they did.
> Got any hints how to do this within a days work?
> TIA, Roel.
> PS I'm no programmer but I'm eager to learn
> > -----Original Message-----
> > From: Ron Bickers
> > [mailto:email@example.com]
> > Sent: Thursday, June 05, 2003 6:11 PM
> > To: firstname.lastname@example.org; email@example.com
> > Subject: RE: [Zope] filtering Photo objects in Photofolder - View
> > > -----Original Message-----
> > > From: firstname.lastname@example.org [mailto:email@example.com]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.
> Zope maillist - Zope@zope.org
> ** No cross
> posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-dev )