On 7/22/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote:
> I am trying to set the bgcolor of a page based on the existance of a variable.
>
> Neither of these seem to work:
>
> tal:attributes="bgcolor python:test(hasattr(options, 'error'), 'red',
> 'green')">
Try this:
-Fred
--
Fred L. Drake, Jr.
Zope Corporation
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )