[Zope] displaying based on date

Timothy Wilson wilson@visi.com
Mon, 25 Sep 2000 17:00:47 -0500 (CDT)


Hi everyone,

I've created a ZClass and I'm using an HTML table to display certain
properties of the class. One of the properties is a date, and I want to
display in the table only those instances of the ZClass for which this
certain date property is in the future. (It's a job posting ZClass, and I
only want to display jobs that haven't yet closed.)

I see in the ZQR that there is an 'isFuture' test that looks like it is
associated with fmt. ZQR says for isFuture, "Return true if this object
represents a date/time later than the time of the call."

Can I combine this with a <dtml-if>? Is there a more elegant way?

-Tim

--
Tim Wilson      | Visit Sibley online:         | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |                              | http://slashdot.org/
wilson@visi.com |   <dtml-var pithy_quote>     | http://linux.com/