Esempio n. 1
0
    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
Esempio n. 2
0
   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
Esempio n. 3
0
    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")
Esempio n. 4
0
   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")