def heavy_job(registry, xml_parent, data):
 heavyjob = XML.SubElement(xml_parent, 'hudson.plugins.heavy__job.HeavyJobProperty')
 XML.SubElement(heavyjob, 'weight').text = str(data.get('weight', 1))

def heavy_job ( registry , xml_parent , data ) : heavyjob = XML . SubElement ( xml_parent , 'hudson.plugins.heavy__job.HeavyJobProperty' ) XML . SubElement ( heavyjob , 'weight' ) . text = str ( data . get ( 'weight' , 1 ) )
yaml: heavy-job this plugin allows you to define "weight" on each job .