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() def...: item = db().select(db.auth_user.username.ALL) return... def...: item = # both previous func with periods instead of _ @auth.requires_login() def...: item = # prev logic In html I've tried: {{=item}} {{for ite in item:}} <ul><li>{{=ite}}</li></ul> {{pass}} {{for...:}} <ul....>{{=ite.username}}</....> {{pass}} # 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 Etc Thanks for reading! Also, this was posted from my phone which is why I used pseud code -- 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.