[Zope] Templates and Attributes

Bruce Richardson itsbruce@uklinux.net
Sat, 16 Mar 2002 13:26:16 +0000


--/WwmFnJnmDyWGHa4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 15, 2002 at 07:30:02PM -0800, Colin Fox wrote:
> Hello, everyone.
>=20
> I'm trying to create a page for editing a database entry.
>=20
> The form I'm using has a pair of radio buttons for a person's gender.
> I'm using the page template's tal:attribute feature to set the default
> values of all the text input fields, and that works great.
>=20
> But I can't figure out how to do this with the radio buttons, since they
> don't use the format 'value=3D"CHECKED"', they simply use 'CHECKED'.=20

Use the HTML4/XHTML syntax: checked=3D'checked'


--=20
Bruce

Those who cast the votes decide nothing.  Those who count the
votes decide everything. -- Joseph Stalin

--/WwmFnJnmDyWGHa4
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: http://website.lineone.net/~brichardson/pubkey/gpg.txt

iD8DBQE8k0f4TUoovyBEcVQRAsNpAJ0R/8R2+y66EBgfPqJsdTNHyUnOjwCgnqlG
eviREMmVwzLeVaDPPERRVDM=
=0Lrj
-----END PGP SIGNATURE-----

--/WwmFnJnmDyWGHa4--