[Zope] CMF & searchResults

Meilicke, Scott scott.meilicke@intp.com
Wed, 31 Oct 2001 13:36:58 -0800


This isn't exactly what you asked for, but try something like =
(untested):

created =3D '7'
created_usage =3D 'range:min'

To get items less than 7 days old. =20

It may be that the '7' is handled as a string, and not a number.  In =
that
case you will need to do something like=20

<dtml-let d=3D"_.string.atoi('7')">

portal_catalog.searchResults( meta_type=3D'News Item'
 , sort_on=3D'Date'
 , sort_order=3D'reverse'
 , review_state=3D'published'
 , created =3D d
 , created_usage =3D 'range:min'
))

</dtml-let>

-Scott

-----Original Message-----
From: Joel Brueziere [mailto:joelbrueziere@yahoo.com]
Sent: Wednesday, October 31, 2001 7:36 AM
To: Zope@zope.org
Subject: [Zope] CMF & searchResults


I search a way to do a searchResults
with a min/max date criteria.
like this:

portal_catalog.searchResults( meta_type=3D'News Item'
 , sort_on=3D'Date'
 , sort_order=3D'reverse'
 , review_state=3D'published'
<<< , Date > myDate >>>
))

Do you know the right syntax for this?

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran=E7ais !
Yahoo! Courrier : http://courrier.yahoo.fr

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -=20
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )