[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 
>> grabs everything that is like the list entry -- i.e. .contains(1) will snag 
>> records 1, 12, etc.  And 'in' obviously doesnt work.  Thoughts?
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


[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' obviously doesnt work.  Thoughts?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.