From: spo Date: Wed, 16 Dec 2015 08:42:22 +0000 (+0300) Subject: [PythonAPI] Fix type error in tools.fill_attribute() for ModelAPI_AttributeRefAttr... X-Git-Tag: V_2.1.0~162^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b93c261f73923c845635672ee9b717df87a8497d;p=modules%2Fshaper.git [PythonAPI] Fix type error in tools.fill_attribute() for ModelAPI_AttributeRefAttr section --- diff --git a/src/PythonAPI/model/tools.py b/src/PythonAPI/model/tools.py index 9971e4b69..a9357d7c8 100644 --- a/src/PythonAPI/model/tools.py +++ b/src/PythonAPI/model/tools.py @@ -83,9 +83,9 @@ def fill_attribute(attribute, value): assert(isinstance(value, ModelAPI.ModelAPI_Attribute) or isinstance(value, ModelAPI.ModelAPI_Object)) if isinstance(value, ModelAPI.ModelAPI_Attribute): - attrubute.setAttr(value) + attribute.setAttr(value) elif isinstance(value, ModelAPI.ModelAPI_Object): - attrubute.setObject(value) + attribute.setObject(value) elif isinstance(attribute, ModelAPI.ModelAPI_AttributeRefList): attribute.clear()