Ejemplo n.º 1
0
def tally_validation_results(job_id, validation_str, **kw):
    """Saves a tally of how many addons received each validation message.
    """
    validation = json.loads(validation_str)
    log.info('[@%s] tally_validation_results (job %s, %s messages)' %
             (tally_validation_results.rate_limit, job_id,
              len(validation['messages'])))
    v = ValidationJobTally(job_id)
    v.save_messages(validation['messages'])
Ejemplo n.º 2
0
def tally_validation_results(job_id, validation_str, **kw):
    """Saves a tally of how many addons received each validation message.
    """
    validation = json.loads(validation_str)
    log.info('[@%s] tally_validation_results (job %s, %s messages)'
             % (tally_validation_results.rate_limit, job_id,
                len(validation['messages'])))
    v = ValidationJobTally(job_id)
    v.save_messages(validation['messages'])