Some more logic for the ITEMLISTs.
Torsten Houwaart
9 years ago
531 | 531 | else: |
532 | 532 | parent_node = inputs_node |
533 | 533 | |
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: | |
536 | 536 | rep_node = SubElement ( parent_node, "repeat") |
537 | 537 | create_repeat_attribute_list(rep_node, param) |
538 | 538 | parent_node = rep_node |
551 | 551 | rep_node.attrib["min"] = "1" |
552 | 552 | else: |
553 | 553 | 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" | |
554 | 557 | rep_node.attrib["title"] = get_galaxy_parameter_name(param.name) |
555 | 558 | |
556 | 559 |