Your query db.auth_user==arg is wrong. You need to compare with a field in 
auth_ser. You probably want something like db.auth_user.id==arg 

quinta-feira, 20 de Outubro de 2016 às 07:36:05 UTC+1, Jaimee S escreveu:
>
> Hello all, 
>
> I have a list of users on my page. I'm trying to click one user and add 
> that user to a list. After that, I'm trying to loop though each and display 
> their username in html. I can't seem to get the code one hundred percent 
> right. Any help would be appreciated!
>
> Here is my code:
>
> <model>
> def to_del():
> arg=request.args(0)
> guy=db(db.auth_user==arg).select(db.auth_user.username)
> people=[]
> for person in guy:
> people.append(guy)
> return locals()
> <model>
>
> <html>
>
> <h2>selected: # for loop with people<html>
>
> Any ideas?
>
>

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