]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Remove get_values() function from tools.py
authorspo <sergey.pokhodenko@opencascade.com>
Fri, 30 Oct 2015 12:23:30 +0000 (15:23 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 30 Oct 2015 13:42:53 +0000 (16:42 +0300)
src/PythonAPI/model/tools.py

index 220fdee4fa11e34af201cb07371e7cf3c2f9215b..fe300d990b670624bb0f96875af5a2afca6c03c3 100644 (file)
@@ -19,20 +19,6 @@ def convert_to_underscore(name):
     return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
 
 
-def get_value(attribute):
-    """Return simple type value from ModelAPI attribute if possible.
-
-    ModelAPI_AttributeDouble -> double
-    ModelAPI_AttributeString -> str
-    """
-    if (isinstance(attribute, ModelAPI.ModelAPI_AttributeDouble) or
-            isinstance(attribute, ModelAPI.ModelAPI_AttributeString)):
-        return attribute.value()
-
-    print type(attribute)
-    return attribute
-
-
 class Selection:
     """Class for storing selection."""