I want to create a query object with multiple constraints, just like adding 
commas in the WHERE clause of an sql query. I tried the intuitive 
"constraint1 and constraint2" but it just took constraint2 and ignored 
constraint1 (probably because the key word "and" isn't overridden and when 
applied to two non-null objects simply takes the latter in Python).

How do I do complex constraints in web2py query objects? I couldn't find 
any examples easily in the book.

-- 

--- 
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