[Zope-dev] ZPT attributes and ""

Malthe Borch mborch at gmail.com
Tue Mar 10 09:08:53 EDT 2009


Currently, if an attribute expression evaluates to any value that's
boolean False, it's omitted (e.g. 0, "", object()). I think that's
unexpected. Instead, attributes should only be omitted when the
expression evaluates to ``None``.

How do folks feel about changing this behavior in ``zope.pagetemplate``.

\malthe


More information about the Zope-Dev mailing list