def handle_edit_action(self, action, data):
     CheckAuthenticator(self.request)
     if form.applyChanges(self.context, self.form_fields, data, self.adapters):
         self.status = _("Changes saved.")
         notify(ConfigurationChangedEvent(self, data))
         self._on_save(data)
     else:
         self.status = _("No changes made.")
 def handle_cancel_action(self, action, data):
     IStatusMessage(self.request).addStatusMessage(_("Changes canceled."), type="info")
     url = getMultiAdapter((self.context, self.request), name="absolute_url")()
     self.request.response.redirect(url + "/plone_control_panel")
     return ""