[Zope-CMF] CMF 1.2b2 breaks Cleanskin

Chris Withers chrisw@nipltd.com
Thu, 17 Jan 2002 11:51:08 +0000


Jon Edwards wrote:
> 
> A CSS stylesheet? Where you're substituting the values for properties you've
> stored somewhere (in the Page Template's properties in my case) - as in my
> original example -
> 
> > background-color: <span tal:condition="here/ttw_style_editing | default"
> >
> tal:replace"template/bgcolor_setting">#FFFFFF</span>

try this:

background-color: <tal:r tal-replace="python:
test(here.ttw_style_editing(),template/bgcolor_setting,default)">#FFFFFF</tal:r>

cheers,

Chris

PS: I wish Guido would put the test function into the python core ;-)