[Zope] Searching date ranges on catalogs.

Josef Meile josef.meile@imes.mavt.ethz.ch
Sat, 12 Jan 2002 17:22:23 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_00A8_01C19B8D.B2D322C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I just wondering if you can do it with ZCatalogs.
I have a product wich I called reserve and it has two fields: startDate =
and endDate (both field Indexes). The entry of my python script is a =
date (let's say currentDate). I just need to do search the objects wich =
satisfy the following condition:
startDate<=3DcurrentDate<=3DendDate.

Thanks in advanced,
Josef.

------=_NextPart_000_00A8_01C19B8D.B2D322C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2712.300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I just wondering if you can do it with=20
ZCatalogs.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have a product wich I called reserve =
and it has=20
two fields: startDate and endDate (both field Indexes). The entry of my =
python=20
script is a date (let's say currentDate). I just need to do search the =
objects=20
wich satisfy the following=20
condition:<BR>startDate&lt;=3DcurrentDate&lt;=3DendDate.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advanced,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Josef.</FONT></DIV></BODY></HTML>

------=_NextPart_000_00A8_01C19B8D.B2D322C0--