]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
[PythonAPI] Fix type error in tools.fill_attribute() for ModelAPI_AttributeRefAttr...
authorspo <sergey.pokhodenko@opencascade.com>
Wed, 16 Dec 2015 08:42:22 +0000 (11:42 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Thu, 17 Dec 2015 11:53:07 +0000 (14:53 +0300)
src/PythonAPI/model/tools.py

index 9971e4b697ea45763a32adf3e6a74ca58be0fc3c..a9357d7c8c1764d736333bd349ff2c1a05712bf7 100644 (file)
@@ -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()