[Zope] Checking for nulls in a date/time field

McDonnell, Larry lmcdonnell@protonenergy.com
Wed, 30 Oct 2002 14:31:25 -0500


Thanks Ben, the unless statement worked...

-----Original Message-----
From: Ben Avery [mailto:ben@thesite.org]
Sent: Wednesday, October 30, 2002 2:26 PM
To: McDonnell, Larry
Cc: 'Zope@Zope. Org' (E-mail)
Subject: Re: [Zope] Checking for nulls in a date/time field


the pythonic equivalent of a NULL is None, so try

<dtml-if "verify_close_date == None">

or even

<dtml-unless verify_close_date>


HTH

Ben Avery

McDonnell, Larry wrote:
> Hi,
> 
> I thought I saw this before but I am having difficulty in findin gthis
> answer. I use MS Access and can save the dates in their date/time format.
> But if the field is empty (close_date) and I populated with a Null, how do
I
> find it?
> 
> I used this-
> 
> <dtml-if expr="verify_close_date=='Null'"> and I tried this <dtml-if
> expr="verify_close_date==' ' ">. 
> 
> I'm just looking for a pointer, thanks.
> 
> 
> 
> Larry McDonnell
> 
> Proton Energy Systems
> 10 Technology Drive
> Wallingford, CT 06492
> (203) 678-2181
> Email:lmcdonnell@protonenergy.com
> www.protonenergy.com
> 
> 
> _______________________________________________
> 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 )
>