[Zope] ZopeFind & obj_searchterm & obj_expr

Oliver Erlewein oerlewein@gmx.de
Wed, 31 Oct 2001 12:05:11 +0100 (MET)


I want to find Objects with certain values. Momentarily I use this script:

-- till=7, datum is a property of the Object Forumbeitrag! --

<dtml-call "REQUEST.set('Ztime', ZopeTime()-till)">
<dtml-call "REQUEST.set('result', ZopeFind(this(),
obj_metatypes=['Forumbeitrag'], obj_mtime=Ztime, search_sub=1))">
<dtml-if result>
<h2>New comments the last &dtml-till; days:</h2><br>
<table border=0 cellpadding=2>
<dtml-in result sort=datum reverse>
 <dtml-if "datum >= (Ztime.Date()+' '+Ztime.Time())">
   <tr><td><dtml-var title></td></tr>

Now, as you can see it is quite complicated. How do I get the evaluation of
"datum >= (Ztime.Date()+' '+Ztime.Time())" into the ZopeFind command?

Thanx Oliver

GMX - Die Kommunikationsplattform im Internet.