[Zope-PTK] "score" or "sortOrder" for PortalContent?

Kevin Dangoor kid@kendermedia.com
Sat, 20 May 2000 08:47:53 -0400


----- Original Message -----
From: "Dan L. Pierson" <dan@sol.control.com>
To: "Kevin Dangoor" <kid@kendermedia.com>
Cc: <zope-ptk@zope.org>
Sent: Friday, May 19, 2000 5:52 PM
Subject: [Zope-PTK] "score" or "sortOrder" for PortalContent?


> So, if 'score' is seen as a method with an arbitrary definition I'm
> probably for it.  If it's seen as a slot holding a single number, I'm
> unconvinced.

I definitely see it as a method that should be overridden for specific
tasks. In my original example of KM|net News which uses a score that is
based on importance and release date, "score" would certainly be a method
that computes the value and not a property holding a number.

My hope is that everyone can do sort=score, or "'sortOn' : 'score'" for
ZCatalog queries, for most Portal content. There might be some instances
where you need to do something that is too complex to even incorporate into
a method like this... but I don't think there would be many.

Kevin