def locks(registry, xml_parent, data):
 locks = data
 if locks:
  lw = XML.SubElement(xml_parent, 'hudson.plugins.locksandlatches.LockWrapper')
  locktop = XML.SubElement(lw, 'locks')
  for lock in locks:
   lockwrapper = XML.SubElement(locktop, 'hudson.plugins.locksandlatches.LockWrapper_-LockWaitConfig')
   XML.SubElement(lockwrapper, 'name').text = lock

def locks ( registry , xml_parent , data ) : locks = data if locks : lw = XML . SubElement ( xml_parent , 'hudson.plugins.locksandlatches.LockWrapper' ) locktop = XML . SubElement ( lw , 'locks' ) for lock in locks : lockwrapper = XML . SubElement ( locktop , 'hudson.plugins.locksandlatches.LockWrapper_-LockWaitConfig' ) XML . SubElement ( lockwrapper , 'name' ) . text = lock
yaml: locks control parallel execution of jobs .