[Zope-CMF] Silly catalog query-question

Kevin Carlson khcarlso@bellsouth.net
Thu, 20 Feb 2003 10:27:12 -0500


This may help, but it is untested...

  resultSet = context.portal_catalog.searchResults(Type='Event', 
sort_on='Date', review_state='published', start=ZopeTime(), 
start_usage=range:min)
 
This should give you all of the events occurring past the current time.  
Just pick the first one off the list.

Kevin

Gitte Wange wrote:

>Hello,
>
>Well I'm stuck at a little silly thing :-)
>I want to create a little box containing the next event on my portal.
>But I can't remember the query to make :-(
>I can find the items, but it also finds items in the past (and I only want 
>items in the future).
>
>Anyone with a little help here ?
>CMF-1.3, Zope-2.6.1
>
>  
>