def register_onaccept(form):
 req_vars = form.request_vars
 position = req_vars.get('position', '')
 reason = req_vars.get('reason', '')
 db = current.db
 table = db.auth_user
 db((table.id == form.vars.id)).update(comments=('%s | %s' % (position, reason)))

def register_onaccept ( form ) : req_vars = form . request_vars position = req_vars . get ( 'position' , '' ) reason = req_vars . get ( 'reason' , '' ) db = current . db table = db . auth_user db ( ( table . id == form . vars . id ) ) . update ( comments = ( '%s | %s' % ( position , reason ) ) )
tasks to be performed after a new user registers .