hi, i had tried something similar already without success. here is the error your script caused: DOH! Zope Error Zope has encountered an error while publishing this resource. Error Type: TypeError Error Value: unsubscriptable object for some reason Zope just doesn't want to compare ZopeTime with bobobase_modification_time. i started reading the readme i found for the python DateTime method but it hasn't shed any light on the situation yet. i will try doing it with javascript. i can write the modification dates of the objects into arrays and do the comparisons using a scripting language that works. thanks -<mike>- -----Original Message----- From: ender@earthlink.net [mailto:ender@earthlink.net]On Behalf Of Kapil Thangavelu Sent: Wednesday, October 11, 2000 2:53 PM To: michael angelo ruberto Cc: zope@zope.org Subject: Re: [Zope] date comparison michael angelo ruberto wrote:
i want to create an index page that displays whether or not a page has
been
updated in the past 7 days or the past 20 days. however, i can't figure out how to get the bobobase_modification_date to compare with ZopeTime. can someone give me a clue before i rush blindly down Zope's undocumented dark alleys.
mike
untested <ul> <dtml-in "objectValues['DTMLDocument']"> <dtml-if "ZopeTime()-7 < bobo_base_modifcation_time"> <li><b>New</b><dtml-var absolute_url></li> <dtml-elif "ZopeTime()-20 < bobo_base_modifcation_time"> <li><b>Somewhat New</b><dtml-var absolute_url></li> <dtml-else> <li><b>Old</b><dtml-var absolute_url></li> </dtml-if> </dtml-in> </ul> kapil _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )