Codebase list ctdconverter / f8aa4eb
Some more logic for the ITEMLISTs. Torsten Houwaart 9 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
531531 else:
532532 parent_node = inputs_node
533533
534 # check if repeat tag is needed
535 if param.is_list and param.default is None:
534 # for lists we need a repeat tag
535 if param.is_list:
536536 rep_node = SubElement ( parent_node, "repeat")
537537 create_repeat_attribute_list(rep_node, param)
538538 parent_node = rep_node
551551 rep_node.attrib["min"] = "1"
552552 else:
553553 rep_node.attrib["min"] = "0"
554 # for the ITEMLISTs which are given as string we only need one
555 if param.default is not None:
556 rep_node.attrib["max"] = "1"
554557 rep_node.attrib["title"] = get_galaxy_parameter_name(param.name)
555558
556559