[Zope] Detecting a NULL Value
FLORAC Thierry
thierry.florac at onf.fr
Fri Feb 27 09:46:41 EST 2004
On Fri, 2004-02-27 at 14:55, Asad Habib wrote:
> I have a field in my MySQL database which is allowed to be null and has a
> value of NULL as default. I am retrieving this field and numerous others
> using a call to dtml-in. After the retrieval, I would like to determine
> what this value is inside my DTML document/method. What is the equivalent
> of NULL in Zope? Is it a value of 'None'?
>
> I am using the following code but it doesn't work.
>
> <dtml-if expr="undergraduate_projects_directed == 'None'">
> <dtml-call "REQUEST.set('undergraduateProjectsDirected', 'Hello')">
> </dtml-if>
I use PostgreSQL and Oracle.
For each of them, I generally do this :
<dtml-unless undergraduate_projects_directed>
...
</dtml-unless>
Thierry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20040227/2707b40e/attachment.html
More information about the Zope
mailing list