def save_changes(self): """ Saves the changes made in the widget """ config = self.get_config() SERVICE_MANAGER.save_service(self.service_type, self.service_id, config)
def _save_configuration(self): service_type = self.get_current_service_type() name, ok = QInputDialog.getText(self, self.tr('Save Service Configuration'), self.tr('Save the current service configuration as')) if not name or not ok: return filter_widget = self.get_service_filter_widget(service_type) SERVICE_MANAGER.save_service(service_type, name, filter_widget.to_service_definition()) self.set_current_service(service_type, name)
def save_changes(self): config = self.get_config() SERVICE_MANAGER.save_service(self.service_type, self.service_id, config)