Re: [Zope] Missing attribute with ZSQL methods?

2001-01-18 Thread Stephane Bortzmeyer

On Wednesday 17 January 2001, at 11 h 30, the keyboard of "Ron Bickers" 
[EMAIL PROTECTED] wrote:

 "missing" is only effective if the variable telephone cannot be found.  Even
 if it has a null or None value, it's not considered missing.  Try dtml-var
 telephone null="(No phone)" instead.

This one works fine (you got the reason right) and I missed it in the 
documentation.

Emmanuel Philippot [EMAIL PROTECTED] suggested another way, which 
seems to do the same:

dtml-var telephonedml-unless telephone(No phone)/dtml-unless

Thanks to both of you.

 




___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Missing attribute with ZSQL methods?

2001-01-17 Thread Ron Bickers


 If I write DTML that way:

 tddtml-var telephone missing="(No phone)"/td

 and if "telephone" comes from a ZSQL method, "missing" is ignored
 even if the
 field was NULL (in SQL sense). Is it normal?

"missing" is only effective if the variable telephone cannot be found.  Even
if it has a null or None value, it's not considered missing.  Try dtml-var
telephone null="(No phone)" instead.
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


___
Zope maillist  -  [EMAIL PROTECTED]
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 )