[ZPT] Re: [Zope] Using ZPT with options/radio/checkboxes

Paul Winkler pw_lists at slinkp.com
Fri Aug 8 13:11:37 EDT 2003


On Fri, Aug 08, 2003 at 03:28:38PM +0100, Fergal Daly wrote:
> This just came up recently on the Petal list. The spec
> 
> http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixC.stx#3-38
> 
> says delete the attribute when the expression evaluates to "nothing", moreover 
> the spec
> 
> http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixC.stx#3-3
> 
> says that "nothing" is not a string the empty string should not delete 
> attributes and so it should be possible to produce
> 
> <myTag needsToBeHere=""/>

Agreed; if anything were to be changed, the special behavior of
"selected" and "checked" should be changed to follow the spec.
So you can make them disappear by ensuring that you get a nothing
result. needsToBeHere="" can be generated by ensuring that you
get an empty string result.

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's PSEUDO PERIODIC DAD!
(random hero from isometric.spaceninja.com)



More information about the ZPT mailing list