This grid indicates that db.auth_user has a 'created_by' column. Is this your case? Anyway, trying your code at a different table having a 'created_by' column worked fine to me (buttons Edit and Delete are there).
On Sunday, August 4, 2013 5:17:40 AM UTC+1, Alex Glaros wrote: > > This looks like it should work, using grid, but the "edit" button doesn't > appear. only the view button. > > @auth.requires_login() > def manage_user_profile(): > is_owner = (lambda row: row.created_by == auth.user_id) if auth.user > else False > grid = SQLFORM.grid(db.auth_user.id == auth.user_id, > editable=is_owner,create=False, deletable=is_owner, user_signature=True), > return dict(grid=grid) > > -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

