]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
[PythonAPI] Fix error in parameter wrapper
authorspo <sergey.pokhodenko@opencascade.com>
Wed, 16 Dec 2015 08:33:20 +0000 (11:33 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Thu, 17 Dec 2015 11:53:06 +0000 (14:53 +0300)
src/PythonAPI/model/parameter/parameter.py

index d29719ce4a7d5918c8456ca660454408f50b477b..9bc5b5a075ea1175a01e491244238ff3f71e6e6f 100644 (file)
@@ -43,8 +43,8 @@ class Parameter(Interface):
         Interface.__init__(self, feature)
         assert(self._feature.getKind() == "Parameter")
 
-        self._variable = self._feature.data().string("variable")
-        self._expression = self._feature.data().string("expression")
+        self._variable = self._feature.string("variable")
+        self._expression = self._feature.string("expression")
 
         assert(self._variable)
         assert(self._expression)
@@ -64,7 +64,7 @@ class Parameter(Interface):
 
         See __init__.
         """
-        self._fillAttribute(self._name, name)
+        self._fillAttribute(self._variable, name)
         pass
 
     def setExpression(self, expression):