AW: [Zope] filtering Photo objects in Photofolder - View

volker.wend@efgbsh.de volker.wend@efgbsh.de
Wed, 11 Jun 2003 22:11:29 +0200


The Product is now online.

http://www.zope.org/Members/volkerw/photoaddon

Regards,
Volker

-----Urspr=FCngliche Nachricht-----
Von: volker.wend@efgbsh.de [mailto:volker.wend@efgbsh.de]=20
Gesendet: Dienstag, 10. Juni 2003 14:29
An: roel@planetinterior.com; zope@zope.org;
rbickers-expires-1055434268.e0f6a3@logicetc.com
Betreff: RE: [Zope] filtering Photo objects in Photofolder - View


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
the Photos.

I'll try to post this as a Product on Zope.org this week.

Regards,
Volker




> -----Original Message-----
> From: Roel Van den Bergh [mailto:roel@planetinterior.com]
> Sent: Dienstag, 10. Juni 2003 09:12
> To: zope@zope.org; Ron Bickers
> Subject: RE: [Zope] filtering Photo objects in Photofolder - View
>=20
>=20
> Thanks for the tip.
>=20
> 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=20
> bit "out of my leage" with no starting clues.
>=20
> 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=20
> training" :-( . WOuld be nice if they did.
>=20
> Got any hints how to do this within a days work?
>=20
> TIA, Roel.
>=20
> PS I'm no programmer but I'm eager to learn
>=20
> > -----Original Message-----
> > From: Ron Bickers
> > [mailto:rbickers-expires-1055434268.e0f6a3@logicetc.com]
> > Sent: Thursday, June 05, 2003 6:11 PM
> > To: roel@planetinterior.com; zope@zope.org
> > Subject: RE: [Zope] filtering Photo objects in Photofolder - View
> >
> >
> > > -----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=20
> > > metatag? If I use if - elif -else - /if 'PREV' and/or=20
> '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=20
> > next/prev scripts to
> > filter out what you need and return the proper next/prev=20
> object reference.
> > I suggest the nextPhoto/prevPhoto source in Photo.py as a
> good starting
> > point.
> > _______________________
> >
> > Ron Bickers
> > Logic Etc, Inc.
> >
> >
>=20
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross=20
> posts or HTML encoding!  **
> (Related lists -=20
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>=20

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