Hello All, 

Im new to web2py and I can't seem to figure out how to access the usernames of 
the registered users. I added username to the default login and it renders just 
fine. In my controller I've tried various methods such as:

def xx():
 item = db(db.auth_user).select(db.auth_user.username.ALL)
 return locals()

 item = db().select(db.auth_user.username.ALL)

 item = # both previous func with periods instead of _
 item = # prev logic

In html I've tried:


{{for ite in item:}}


# also tried same methods with table tags

My ticket error:
Name 'html_variable' is not defined

My plan is as follows:
Display all users on page as ul or td
Create css flex box and display each user by username
Display each user by image

Thanks for reading!

Also, this was posted from my phone which is why I used pseud code 

- 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