source: CPL/oasis3-mct/branches/OASIS3-MCT_2.0_branch/util/oasisgui/library/oasis3-mct/scripts/process_groups.py @ 4775

Last change on this file since 4775 was 4775, checked in by aclsce, 5 years ago
  • Imported oasis3-mct from Cerfacs svn server (not suppotred anymore).

The version has been extracted from https://oasis3mct.cerfacs.fr/svn/branches/OASIS3-MCT_2.0_branch/oasis3-mct@1818

  • Property svn:executable set to *
File size: 523 bytes
Line 
1from XDR import *
2
3###########################
4# INITIALIZATION
5
6init()
7
8##
9#
10mult_fields_name = ["single"]
11after_group_names_list = []
12
13# Create the multiple fields names
14# in function of the nb_mult value
15
16index = 1
17
18for group_id in getChildrenName("group"):
19    group_name = getValue(group_id)
20    mult_fields_name.append(group_name)
21    if group_name == "no label":
22        error("You must give a name to your group or delete it")
23
24
25#print(mult_fields_name)
26setValue(mult_fields_name, "mult_fields_name")
27
28finish()
29
30
Note: See TracBrowser for help on using the repository browser.