[Zope] Order by property

Andrew Fielden andrew.fielden@emotion.co.uk
Thu, 8 Mar 2001 17:50:38 -0000


All

I am looking at the best way to order a set of dtml documents to display on
a page using a custom sort method. I have it in mind to do something very
similar to the Elvis sightings in the quick start tutorial.

My current suggestion that is currently incomplete is
The documents are in their own folder, similar to the Elvis sightings. - OK
no problems there
That the documents have a property called orderNo - OK again and once I get
the display sorted I will try to create my own zclass to hold the property
(unless there is a simple better way)
There is a DTML method (or should it be a python script) that sorts the
documents and then displays them, I am thinking of a dtml-in type thing
here.

I have looked through much of the documentation and all of the howtos but
cannot work out how to do the sorting and iteration. Ideally I would like to
use acquisition to achieve this so that I can have sets of folders that I
can sort in the same way without having to worry about the method being
present.

Can anyone help.

Andrew Fielden