def METHOD_NAME(self):
    action = request.form.get("action")
    if action == "save":
        settings = self.settings
        for key in self._keys:
            value = key.value_from_request()
            settings.set(key.id, value, key.type)
        db.session.commit()
        # FIXME: this is weak: only this process will have its config changed;
        # full reload of app stack (web workers + celery workers) has to be done
        # manually.
        current_app.config.update(settings.as_dict())
        flash(_("Changes saved."))
    return redirect(url_for(".settings"))