@auth.requires_login() |
Specify which fields are fetched from the database
auth.requires_login()
def manage_users():
grid = SQLFORM.grid(db.auth_user, fields=[db.auth_user.id,auth_user.name])
return locals()
Retrieves record based on search query.
grid = SQLFORM.grid(db.auth_user.disabled==True, user_signature=False)
field_id must be the field of the table to be used as ID, for example db.mytable.id.
@auth.requires_login()
def manage_users():
grid = SQLFORM.grid(db.auth_user, fields=[db.auth_user.id,auth_user.name])
return locals()