[Zope] Help with expr

Todd Loomis tloomis@dmso.mil
Thu, 09 Aug 2001 14:26:32 -0400


All:

I'm trying to use the following code:

<dtml-in get_story>
<dtml-if expr="ZopeTime(end).strftime('%m/%d/%y') > 
ZopeTime().strftime('%m/%d/%y') and
ZopeTime(start).strftime('%m/%d/%y') <= ZopeTime().strftime('%m/%d/%y')">
<dtml-var title>
</dtml-if>
</dtml-in>

I'm using a sql method get_story, then my if statement should be if the end 
is greater than today's date and if start is less than or equal to today's 
date show the title. However it does the both of them seperate rather that 
together and I'm getting the wring records. How can I join the statements 
so both have to be true to get results?

Regards,
Todd

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Todd Loomis
Web Developer (SAIC)
Defense Modeling & Simulation Office
1901 N. Beauregard Street, Suite 500
Alexandria, VA 22311
Office: 703.824.3407 Fax: 703.379.3778
tloomis@dmso.mil