From: vsr Date: Mon, 14 Dec 2009 12:56:29 +0000 (+0000) Subject: Introduce Parameter wrapper class in Python X-Git-Tag: PHASE_17_Part1_V4~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f0f37b6263e12c0d10d4ea4cfd9559d18d02ca6d;p=modules%2Fgeom.git Introduce Parameter wrapper class in Python --- diff --git a/src/GEOM_SWIG/geompyDC.py b/src/GEOM_SWIG/geompyDC.py index fe62ce326..7c6e7707e 100644 --- a/src/GEOM_SWIG/geompyDC.py +++ b/src/GEOM_SWIG/geompyDC.py @@ -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("")