def get_script(self): """return status, message status = number of error messages if 0: message = command else: message = error string Requests for warnings must be made separately, since they are not fatal. """ if len(self.errors) > 0: return 1, SUBJ.make_message_list_string(self.errors, "errors") return 0, self.script
def get_warnings(self): """return the number of warnings and a warnings string""" return len(self.warnings), \ SUBJ.make_message_list_string(self.warnings, "warnings")