def action_put(request): dbsession = DBSession() action = Action() action.name = clean_matchdict_value(request, 'action') action.description = clean_param_value(request, 'description') action.points = clean_param_value(request, 'points') action.timestamp = get_timestamp() dbsession.add(action) transaction.commit() return {'status': 'success'}