[Zope-dev] dtml-var missing

Andrew Lahser andrew@apl-software.com
Sat, 29 Jan 2000 21:37:53 -0500


This feature was added intentionally.

Additionaly,

<dtml-var x missing="Your x is not defined.">

This will print the representation of x if it is defined.
Or "Your x is not defined" if x is not defined.

Also, the following entity syntax is possible.

&dtml.missing-x;

This change was checked into CVS Nov. 5, 1999, so
it should have always been a part of the 2.1 release.

Drew

----- Original Message -----
From: Stephan Richter <srichter@cbu.edu>
To: <zope-dev@zope.org>
Sent: Saturday, January 29, 2000 4:22 PM
Subject: [Zope-dev] dtml-var missing


> I found an undocumented feature today-
>  <dtml-var  x  missing>
>
> This displays x if x is defined (but if it is None, then the word "None"
> is displayed.) If x is not defined then nothing is displayed and there is
no
> error.
>
> So, I put this in ZQR but now I am thinking - is this an undocumented
> feature by mistake or did you intend to deprecate it and so it is
undocumented
> for a reason?
>
> Any other undocumented feature I should know for an important project?
> :)
>
> --
> Stephan Richter
> iXL - Software Designer and Engineer
> CBU - Physics, Computer Science and Chemistry Student
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>
>