def execute(self): report = apply_partitioning(self._partitioning, self._show_execute_message) log.debug("Partitioning has been applied: %s", report) self.errors = list(report.error_messages) self.warnings = list(report.warning_messages) print("\n".join(report.get_messages())) self._ready = True
def execute(self): report = apply_partitioning(partitioning=self._partitioning, show_message_cb=self._show_execute_message, reset_storage_cb=self._reset_storage) self.errors = list(report.error_messages) self.warnings = list(report.warning_messages) print("\n".join(report.get_messages())) self._ready = True
def _do_execute(self): """Apply a non-interactive partitioning.""" self._ready = False hubQ.send_not_ready(self.__class__.__name__) report = apply_partitioning(self._partitioning, self._show_execute_message) StorageCheckHandler.errors = list(report.error_messages) StorageCheckHandler.warnings = list(report.warning_messages) self._ready = True hubQ.send_ready(self.__class__.__name__, True)
def _do_check(self): self.clear_errors() report = apply_partitioning(partitioning=self._partitioning, show_message_cb=log.debug, reset_storage_cb=self._reset_storage) StorageCheckHandler.errors = list(report.error_messages) StorageCheckHandler.warnings = list(report.warning_messages) if self.errors: self.set_warning( _("Error checking storage configuration. <a href=\"\">Click for details</a> or press Done again to continue." )) elif self.warnings: self.set_warning( _("Warning checking storage configuration. <a href=\"\">Click for details</a> or press Done again to continue." )) # on_info_bar_clicked requires self._error to be set, so set it to the # list of all errors and warnings that storage checking found. self._error = "\n".join(self.errors + self.warnings) return self._error == ""
def execute(self): report = apply_partitioning(self._partitioning, print) print("\n".join(report.get_messages())) self.errors = list(report.error_messages) self.warnings = list(report.warning_messages) self._ready = True