On Friday, July 8, 2016 at 7:41:19 AM UTC-7, Alfonso Serra wrote:
>
> [...]
> In any case the "with_kids" fields from the filter's table should be a 
> boolean tristate, that i should handle properly when the form is processed. 
> Not when the form its saved into the db, if its saved. 
>


I'm inclined to say that this is a misapplication of "Boolean".   Tri-state 
logic is not Boolean.  Boolean is True or False.

I think I would consider this to be an appropriate place for an enumeration 
(C terminology) of {DONTCARE, YES, NO}.  And C enumertions are essentially 
a special way of writing range(0 .. n).  Why not just use an int and the 
IN_RANGE() validator?

/dps

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to