Controllers: @auth.requires_login() def users_list(): grid=SQLFROM.smartgrid(db.users, paginate=20, links_placement='left', links=[dict(header='', body=lambda row: A(I(_class='icon retweet icon-retweet'), _href=URL('transition_form', vars=dict((f, row[f]) for f in db.users.fields))))], user_signature=True) return dict(grid=grid)
@auth.requires_login() def transition_form(): for f, v in request.vars.iteritems(): db.users[f].default = v form = SQLFORM(db.users) if form.process().accepted: response.flash = 'form accepted' elif form.errors: response.flash = 'errors on page' else: response.flash = 'facepalm' return dict(form=form) It populates the transition_form properly it just doesn't insert the new record when I click submit. It just doubles the record and returns the response in the view. Also, when loading the transition_form page it automatically flashes with 'facepalm' which means its processing the form on load. -- 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.