Example #1
0
    def html_table_log_issues(self, logName):
        # Link to the compressed log.
        msg = '<td><a href="%s">txt.gz</a>' % self.download_uri(logName)

        # Show a traffic light indicator based on warning and error counts.              
        errors, warnings = utils.count_log_issues(self.file_path(logName))
        form = '<td bgcolor="%s" style="text-align:center;">'
        if errors > 0:
            msg += form % '#ff4444' # red
        elif warnings > 0:
            msg += form % '#ffee00' # yellow
        else:
            msg += form % '#00ee00' # green
        msg += str(errors + warnings)        

        return msg
Example #2
0
    def html_table_log_issues(self, logName):
        # Link to the compressed log.
        msg = '<td><a href="%s">txt.gz</a>' % self.download_uri(logName)

        # Show a traffic light indicator based on warning and error counts.
        errors, warnings = utils.count_log_issues(self.file_path(logName))
        form = '<td bgcolor="%s" style="text-align:center;">'
        if errors > 0:
            msg += form % '#ff4444'  # red
        elif warnings > 0:
            msg += form % '#ffee00'  # yellow
        else:
            msg += form % '#00ee00'  # green
        msg += str(errors + warnings)

        return msg
Example #3
0
 def xml_log(self, logName):
     msg = '<compileLogUri>%s</compileLogUri>' % self.download_uri(logName)
     errors, warnings = utils.count_log_issues(self.file_path(logName))
     msg += '<compileWarnCount>%i</compileWarnCount>' % warnings
     msg += '<compileErrorCount>%i</compileErrorCount>' % errors
     return msg
Example #4
0
 def xml_log(self, logName):
     msg = '<compileLogUri>%s</compileLogUri>' % self.download_uri(logName)
     errors, warnings = utils.count_log_issues(self.file_path(logName))
     msg += '<compileWarnCount>%i</compileWarnCount>' % warnings
     msg += '<compileErrorCount>%i</compileErrorCount>' % errors
     return msg