another piece of examples
 
>>> for row in db(db.thenulltest.thenullablefield.belongs([True])).select(): 
print row
... 
<Row {'thenullablefield': True, 'id': 2L}>
>>> for row in db(db.thenulltest.thenullablefield.belongs([True,False])).
select(): print row
... 
<Row {'thenullablefield': True, 'id': 2L}>
<Row {'thenullablefield': False, 'id': 3L}>
>>> for row in db(db.thenulltest.thenullablefield.belongs([True,False,None
])).select(): print row
... 
<Row {'thenullablefield': True, 'id': 2L}>
<Row {'thenullablefield': False, 'id': 3L}>
>>> for row in db(db.thenulltest.thenullablefield.belongs([None])).select(): 
print row
... 
>>> 



-- 

--- 
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/groups/opt_out.


Reply via email to