Can you please open an issue on googlecode and post the patch. I will check
it and apply asap.
On Wednesday, 27 March 2013 03:39:53 UTC-5, Dmitry Mosin wrote:
>
> Hello, friends.
>
>
> web2py is 2.4.5-stable+timestamp.2013.03.18.22.46.22
>
> There is a small bug.
>
> **
> *
> class RadioWidget(OptionsWidget):
> #...
> def widget(cls, field, value, **attributes):
> #...
> checked = {'_checked': 'checked'} if k == value else {}
> *
>
> But *value *is a list. So *checked *is always empty
>
> Can be fixed same way as done in the CheckboxesWidget()
>
> **
> def widget(cls, field, value, **attributes):
> #...
> if isinstance(value, (list,tuple)):
> value = value[0]
> else:
> value = str(value)
>
>
>
>
>
> Thank you for your time
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.