I have a catalog of events. Each event has a 'dateStart' and a 'dateEnd' property and index. I want to search the catalog to see what is happening in the next 5 days. Therefore two things must be true: -The event must start sometime before 5 days from now (dateStart < today+5) AND -The event must end sometime after today (dateEnd > today) It seems that _usage would do the trick, but that is deprecated. This would have worked well in my searchLogic script: REQUEST.set('dateStart' : ZopeTime() +5, 'dateStart_usage' : 'range:max', 'dateEnd' : ZopeTime(), 'dateEnd_usage' : 'range:min' ) Thanks in advance for any alternative ideas, Nathan
--On Donnerstag, 16. Dezember 2004 11:39 Uhr -0800 Nathan Colgate Clark <nathancolgate@gmail.com> wrote:
I have a catalog of events. Each event has a 'dateStart' and a 'dateEnd' property and index. I want to search the catalog to see what is happening in the next 5 days. Therefore two things must be true: -The event must start sometime before 5 days from now (dateStart < today+5) AND -The event must end sometime after today (dateEnd > today)
It seems that _usage would do the trick, but that is deprecated. This would have worked well in my searchLogic script:
The new query syntax is explained in the 2.7 edition of the Zope Book (somewhere on plone.com or just use Google). -aj
Andreas Jung wrote:
--On Donnerstag, 16. Dezember 2004 11:39 Uhr -0800 Nathan Colgate Clark <nathancolgate@gmail.com> wrote:
I have a catalog of events. Each event has a 'dateStart' and a 'dateEnd' property and index. I want to search the catalog to see what is happening in the next 5 days. Therefore two things must be true: -The event must start sometime before 5 days from now (dateStart < today+5) AND -The event must end sometime after today (dateEnd > today)
It seems that _usage would do the trick, but that is deprecated. This would have worked well in my searchLogic script:
The new query syntax is explained in the 2.7 edition of the Zope Book (somewhere on plone.com or just use Google).
http://www.plope.com/Books/2_7Edition -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
participants (3)
-
Andreas Jung -
Nathan Colgate Clark -
Tres Seaver