[ZPT] Mpoll modifications (zpt)
Chris Withers
chrisw at nipltd.com
Thu Aug 7 17:58:04 EDT 2003
G. Clifford Williams wrote:
> I'm stuck with the following code. What I need is to either limit the
> portal_catalog.searchResults to just the single most recent item
That would be:
portal_catalog.searchResults(meta_type='MPoll',
sort_on='Date',
sort_order='reverse',
review_state='published',
effective=here.ZopeTime(),
effective_usage='range:max',
expires=here.ZopeTime(),
expires_usage='range:min')[0:1]
cheers,
Chris
More information about the ZPT
mailing list