def node(job):
    jobid = self.jobid(job)
    return {'id': jobid, 'value': {'jobid': jobid, 'label': job.rule.name, 'rule': job.rule.name}}
def node(job):
    jobid = self.jobid(job)
    return {'id': jobid, 'value': {'jobid': jobid, 'label': job.rule.name, 'rule': job.rule.name}}