Check out the inline docs in the source code. There should be examples
of how it works. Also, it's a little bit broken atm:

https://bugs.launchpad.net/webpy/+bug/130440

On Sat, Feb 20, 2010 at 3:42 AM, p_W <[email protected]> wrote:
> 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, &#39;description 1&#39;)"
> [/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.
>
>



-- 
Branko Vukelić

http://foxbunny.tumblr.com/
http://www.flickr.com/photos/16889...@n04/
http://www.twitter.com/foxbunny
http://github.com/foxbunny

-- 
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