]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Introduce Parameter wrapper class in Python
authorvsr <vsr@opencascade.com>
Mon, 14 Dec 2009 12:56:29 +0000 (12:56 +0000)
committervsr <vsr@opencascade.com>
Mon, 14 Dec 2009 12:56:29 +0000 (12:56 +0000)
src/GEOM_SWIG/geompyDC.py

index fe62ce326b902e02137d235b535db5290c1ca4e9..7c6e7707ec1743fb19bc21400df23d165f58ad2a 100644 (file)
@@ -107,9 +107,9 @@ def ParseParameters(*parameters):
                p = notebook.get(parameter)
             Result.append(p)
             Params.append(parameter)
-       elif isinstance(parameter, SALOME._objref_Parameter):
-            Result.append(notebook.get(parameter))
-            Params.append(parameter.GetEntry())
+       elif isinstance(parameter, Parameter):
+            Result.append(parameter.value())
+            Params.append(parameter.name())
         else:
             Result.append(parameter)
             Params.append("")