[Zope] DateRangeIndex

André Camargo acamargo@supersul.com.br
Wed, 16 Jul 2003 10:06:08 -0300


pretty useful :D I'll start to use right now...

thanks Thierry, thanks Andreas

andré

Thierry FLORAC wrote:

>On Wednesday 16 July 2003 13:56, André Camargo wrote:
>  
>
>>hi zopistas
>>
>>how do I use ZCatalog's DateRangeIndex, any example/documentation to
>>point me?
>>    
>>
>
>A DateRangeIndex is to be used when you have objects which, for example, have 
>a publication start date (date_first_pub) and a publication end date 
>(date_last_pub).
>To find objects which are published today, you then just have to :
> - create a DateRangeIndex, called for example 'pub_date', with fields 
>'date_first_pub' and 'date_last_pub'
> - query your catalog, with "catalog({'pub_date': DateTime.DateTime(),...})"
>
>And that's all !!
>
>
>  Thierry
>
>  
>