Re: [Zope] tal:attributes question

2005-07-22 Thread Fred Drake
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 -- Fre

[Zope] tal:attributes question

2005-07-22 Thread Erik Myllymaki
I am trying to set the bgcolor of a page based on the existance of a variable. Neither of these seem to work: I can access the error variable with this: tal:content="options/error | nothing">There was an error ___ Zope maillist - Zope@zope.org