From: spo Date: Fri, 30 Oct 2015 12:23:30 +0000 (+0300) Subject: Remove get_values() function from tools.py X-Git-Tag: V_2.1.0~206^2~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d5d430ea4207e5842730516895d139e95f9bb284;p=modules%2Fshaper.git Remove get_values() function from tools.py --- diff --git a/src/PythonAPI/model/tools.py b/src/PythonAPI/model/tools.py index 220fdee4f..fe300d990 100644 --- a/src/PythonAPI/model/tools.py +++ b/src/PythonAPI/model/tools.py @@ -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."""