From: spo Date: Wed, 16 Dec 2015 08:33:20 +0000 (+0300) Subject: [PythonAPI] Fix error in parameter wrapper X-Git-Tag: V_2.1.0~162^2~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=68a3f0934001109743353b6cc2ac42d8b92bd868;p=modules%2Fshaper.git [PythonAPI] Fix error in parameter wrapper --- diff --git a/src/PythonAPI/model/parameter/parameter.py b/src/PythonAPI/model/parameter/parameter.py index d29719ce4..9bc5b5a07 100644 --- a/src/PythonAPI/model/parameter/parameter.py +++ b/src/PythonAPI/model/parameter/parameter.py @@ -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):