[ZPT] why is default false?

Casey Duncan casey@zope.com
Fri, 24 May 2002 10:33:42 -0400


Would it be insane for default to act just like the sample content string=
=20
would?

IOW, default would be false if the sample tag content was empty, and true=
=20
otherwise.

-Casey

On Friday 24 May 2002 10:10 am, Florent Guillaume wrote:
> Agreed, I too am for that change if it doesn't break anything.
> And for exactly the reason you mention :-)
>=20
> Florent
>=20
> Fred L. Drake, Jr. <fdrake@acm.org> wrote:
> >=20
> > Does anyone remember why default is a false value?  It should be
> > possible to conditionally set an attribute using something like:
> >=20
> > <td tal:repeat=3D"ob python:mysequence">
> >   <span class=3D"something"
> >         tal:attributes=3D"class python: expr and default or nothing">
> >     ...
> >   </span>
> > </td>
> >=20
> > I'm sure there was a specific reason for it to be false, but I sure
> > don't remember what, and can't find it in the old project Wiki.
> >=20
> >=20
> >   -Fred
> --=20
> Florent Guillaume, Nuxeo (Paris, France)
> +33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com
>=20
>=20
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt
>=20