def format_history_for_queue():
 slotinfo = []
 history_items = get_active_history()
 for item in history_items:
  slot = {'nzo_id': item['nzo_id'], 'bookmark': '', 'filename': xml_name(item['name']), 'loaded': False, 'stages': item['stage_log'], 'status': item['status'], 'bytes': item['bytes'], 'size': item['size']}
  slotinfo.append(slot)
 return slotinfo

def format_history_for_queue ( ) : slotinfo = [ ] history_items = get_active_history ( ) for item in history_items : slot = { 'nzo_id' : item [ 'nzo_id' ] , 'bookmark' : '' , 'filename' : xml_name ( item [ 'name' ] ) , 'loaded' : False , 'stages' : item [ 'stage_log' ] , 'status' : item [ 'status' ] , 'bytes' : item [ 'bytes' ] , 'size' : item [ 'size' ] } slotinfo . append ( slot ) return slotinfo
retrieves the information on currently active history items .