From 68a3f0934001109743353b6cc2ac42d8b92bd868 Mon Sep 17 00:00:00 2001 From: spo Date: Wed, 16 Dec 2015 11:33:20 +0300 Subject: [PATCH] [PythonAPI] Fix error in parameter wrapper --- src/PythonAPI/model/parameter/parameter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): -- 2.39.2