Is any reason that I don't see "add record" and "view" button with my sqlform.grid (like shown in the example here: http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-grid)?
When I use @auth.requires_login(). I do see the edit and delete button. # db.py db.define_table( 'members', Required('name'), Field('start_date', 'datetime'), Field('Education','string'), Field('work interest','string'), Field('Telnumber',type='string',label= T('Telephone number'), length = 64 ), Field('Address','string'), Field('Emergency_Contract_Name','string'), Field('Emergency_Contract_Phone',type='string',label= T('Telephone number'), length = 64 ), auth.signature) #default @auth.requires_login() def index(): if_author = lambda row: (row.created_by==auth.user_id) db.members.name.represent = lambda name,row: A(name,_href=URL('Our_Members',args=(row.id,IS_SLUG.urlify(name)))) grid = SQLFORM.grid(db.members,args=request.args[:1],editable=if_author,deletable=if_author,details=False,create=False,csv=False) return locals() -- 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.