>
> encoder = (lambda x: "true" if x else "false"),
> decoder = (lambda x: True if str(x)=="True" else False)
> )
>
You might need to distinguish between None/NULL and False.
Anthony
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py
Am Montag, 18. Januar 2016 18:06:32 UTC+1 schrieb Anthony:
>
> Maybe this will work:
> http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Custom-Field-types--experimental-
>
This looks good. Don't know why I didn't see this before...
This seems to work:
from gluo
Maybe this will
work:
http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Custom-Field-types--experimental-
On Monday, January 18, 2016 at 11:36:51 AM UTC-5, Mike Constabel wrote:
>
> Hello,
>
> I need to map *a new* boolean field in a real postgresql bolean field.
>
3 matches
Mail list logo