[web2py] opposite of belongs ?

2010-10-26 Thread Andrew Thompson

Is there a way to get 'NOT IN' via DAL?

I believe it should be a negative/opposite of the belongs operator.

--
Andrew Thompson
http://aktzero.com/



Re: [web2py] opposite of belongs ?

2010-10-26 Thread Thadeus Burgess
db(~db.table.field.belongs(list)).select()

--
Thadeus




On Wed, Oct 27, 2010 at 12:44 AM, Andrew Thompson andre...@aktzero.comwrote:

 Is there a way to get 'NOT IN' via DAL?

 I believe it should be a negative/opposite of the belongs operator.

 --
 Andrew Thompson
 http://aktzero.com/