users=db(db.user.stato==True).select()
for user in users:
    #your code here



17 Şubat 2016 Çarşamba 10:18:40 UTC+2 tarihinde Alessio Varalta yazdı:
>
> Hi I have a class group and a class user for example. So i have a loop
>
> for row_user in row_group.user.select()
>
> now i want only the user that have status true
>
> i try for row_user in row_group.user.select(db.user.stato==True) but i 
> have a error or row_user in row_group.user.select(stato==True)
>
> How I can make this operation? Thanks in advance
>

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

Reply via email to