[Zope] searching dates in ZCatalog from external method

Matthew Wilbert mwilbert@alum.mit.edu
Wed, 24 Nov 1999 06:33:17 -0800


I am trying to call the ZCatalog searchResults method in an
external method, and I am not getting correct results,
so would like to know if anyone can tell me what I am
doing wrong.

This works correctly:

self.searchResults({'id' : '6','id_usage':'range:min'})

This doesn't (start is a DateTime field in the cataloged
objects)

self.searchResults({'start': DateTime('1999/01/01'),\
                    'start_usage':'range:min'})

It returns the id's of all the objects in the 
catalog (which is wrong).

Any ideas as to what have I screwed up?

Thanks for any help,

Matt Wilbert

______________________________________________________________________
Get Visto.com!  Private groups, event calendars, email, and much more.  
Visto.com. Life on the Dot.
Check it out @ http://www.visto.com/info