Salome HOME
Copyright update 2021
[modules/smesh.git] / src / Tools / padder / spadderpy / gui / inputdata.py
index 7ffe653598524bac7b68e949cdcb514078445b1a..7e5e820fcb9a412ee9b66c343012812059992519 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: iso-8859-1 -*-
-# Copyright (C) 2011-2015  EDF R&D
+# Copyright (C) 2011-2021  EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -25,10 +25,10 @@ from salome.kernel.datamodeler import DataModeler, TypeString, TypeInteger
 
 # __MEM__: Note that this module does not depend on the SPADDER
 # component on purpose (we could have use a derived structure of
-# SPADDER_ORB.MeshJobParameter). This choice is made to ease the test
+# SPADDER_ORB.MeshJobFile). This choice is made to ease the test
 # and development of the gui part of the plugin. If this data
 # structure becomes too important, we could make another arrangement
-# and use directly a SPADDER_ORB.MeshJobParameter.
+# and use directly a SPADDER_ORB.MeshJobFile.
 
 class InputData(DataModeler):
     MESHTYPES=Enumerate([
@@ -36,6 +36,8 @@ class InputData(DataModeler):
         'STEELBAR'
         ])
 
+    maListe=MESHTYPES.listvalues()
+
     def __init__(self):
         DataModeler.__init__(self)
         self.addAttribute(
@@ -44,18 +46,18 @@ class InputData(DataModeler):
             )
         self.addAttribute(
             name  = "meshName",
-            type  = TypeString,
-            range = None
+            a_type  = TypeString,
+            a_range = None
             )
         self.addAttribute(
             name  = "meshType",
-            type  = TypeInteger,
-            range = self.MESHTYPES.listvalues()
+            a_type  = TypeInteger,
+            a_range = [0,1] 
             )
         self.addAttribute(
             name  = "groupName",
-            type  = TypeString,
-            range = None
+            a_type  = TypeString,
+            a_range = None
             )
 
 #