Ok, I am stumped trying to get a list of radio buttons that *dont*
have the same description and value.  I have tried the following:

[code]
my_form = form.Form(
    form.Radio('Radio button group', [(val1, "description 1"), (val2,
"description 2")]))
)
[/code]

[code]
my_form = form.Form(
    form.Radio('rad-buttons', value=val1, description="description
1"),
    form.Radio('rad-buttons', value=val2, description="description 2")
)
[/code]

When I use the list of tuples, I get the descriptions to show up
right, but the value attribute of the generated html shows up as an
html-escaped tuple:

[code]
value="(val1, 'description 1')"
[/code]

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to