Boolean field is meant to be used with checkbox. Checkbox doesn't even submit if it's not checked and that's how False is identified.
You can use filter_in or SQLCustomType to modify the behavior and to map one into another. http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Custom-Field-types--experimental- On Sat, Jun 28, 2014 at 12:46 AM, Carlos Zenteno <[email protected]> wrote: > OK, my IS_IN_SET should be: IS_IN_SET([(True, T('Yes')),(False, T('No'))]) > and now the selection shows in the form. > > Still: > - it does not enforce default=False > - no matter if I choose Yes or No (True or False), it puts True in db > > Having a feeling that this does not work with boolean ( a shame) > I have found thread where it works with integers or with 1 char strings... > !!! > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > 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/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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/d/optout.

