[Zope-CMF] Silly catalog query-question
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(),
This should give you all of the events occurring past the current time.
Just pick the first one off the list.
Gitte Wange wrote:
>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 ?