[web2py] Re: db(db.x.id in [foo, man, chu]).select() does not work

2015-11-12 Thread Mark Billion
Works like a charm. Thanks On Thursday, November 12, 2015 at 11:46:33 AM UTC-5, Anthony wrote: > > db.x.id.belongs([list, of, ids]) > > > > On Thursday, November 12, 2015 at 11:35:48 AM UTC-5, Mark Billion wrote: >> >> I want to select all database rows with ids in a preset list ... contains >>

[web2py] Re: db(db.x.id in [foo, man, chu]).select() does not work

2015-11-12 Thread Anthony
db.x.id.belongs([list, of, ids]) On Thursday, November 12, 2015 at 11:35:48 AM UTC-5, Mark Billion wrote: > > I want to select all database rows with ids in a preset list ... contains > grabs everything that is like the list entry -- i.e. .contains(1) will snag > records 1, 12, etc. And 'in'