I am trying to set the bgcolor of a page based on the existance of a variable.
Neither of these seem to work:
body
tal:attributes=bgcolor python:test(hasattr(options, 'error'), 'red',
'green')
body
tal:attributes=bgcolor python:test(hasattr(request, 'error'), 'red',
'green')
I can
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:
body
tal:attributes=bgcolor python:test(hasattr(options, 'error'), 'red',
'green')
Try this:
body