Is that the correct syntax?

select() returns a Rows object, and I'm not sure that operation is 
supported, I tried it in a shell and it throws:

TypeError: bad operand type for unary ~: 'Rows'

This instead returns the complement of the record set:


>>> db(~db.log.severity.belongs((1, 2))).select()


I suppose it's a mistyped command.

-- 

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


Reply via email to