[Zope] Finding Newest Document

Chris Withers chrisw@nipltd.com
Sun, 22 Jul 2001 21:54:39 +0100


Dieter Maurer wrote:
> 
>  > article = Catalog(sort_on='dateofpublication')[0]
> Won't that give you the oldest document?

Yup :-)

I meant:
article = Catalog(sort_on='dateofpublication',sort_order='reverse')[0]

*sheepish grinz*

Chris