the boolean types have a default widget, which is a checkbox, when is
> checked is True, and when is not is False, becouse it is empty... when
> you Choose Si or No, you send a value so you get True becouse it is not
> empty to be False.
>
> I thinks that's the problem.
>
Your comment is right.
this works:
def boolean_widget(field, value):
return SELECT(
OPTION('Si', _value=True),
OPTION('No', _value=''),
_name=field.name,
_id='%s_%s' % (field._tablename, field.name),
)
Thanks
Jose
--
---
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.