[Zope] Templates and Attributes

Peter Bengtsson mail@peterbe.com
Sat, 16 Mar 2002 21:28:37 +0000


>
> >
> > But I can't figure out how to do this with the radio buttons, since they
> > don't use the format 'value="CHECKED"', they simply use 'CHECKED'.
>
>Use the HTML4/XHTML syntax: checked='checked'
>

Bruce is right but here's the solution to your first question:

<input tal:attributes="CHECKED python:here.somescript(param) or nothing" />

Then, make here.somescript return true or false instead of the word "CHECKED".

Peter