Пример #1
0
 def getText(self, cmd, results):
     assert cmd.rc == results, "This should really be our own result"
     log.msg("called getText")
     text = ["no completion found for result %s" % results]
     if hasattr(cmd, "completion"):
         log.msg("rate is %d, results is %s" % (cmd.completion, results))
         text = ["%d%% translated" % cmd.completion]
     if False and cmd.missing > 0:
         text += ["missing: %d" % cmd.missing]
     return LoggingBuildStep.getText(self, cmd, results) + text
Пример #2
0
 def getText(self, cmd, results):
     assert cmd.rc == results, "This should really be our own result"
     log.msg("called getText")
     text = ["no completion found for result %s" % results]
     if hasattr(cmd, 'completion'):
         log.msg("rate is %d, results is %s" % (cmd.completion, results))
         text = ['%d%% translated' % cmd.completion]
     if False and cmd.missing > 0:
         text += ['missing: %d' % cmd.missing]
     return LoggingBuildStep.getText(self, cmd, results) + text