def get_attribute_type(self, attribute_name, value=None):
    '\n        Returns the proper attribute type for a given attribute name\n        '
    for attr in self.data.get(ATTR_DEFINITIONS):
        if (attr.get(ATTR_NAME) == attribute_name):
            return attr.get(ATTR_TYPE)
    if ((value is not None) and isinstance(value, dict)):
        for key in SHORT_ATTR_TYPES:
            if (key in value):
                return key
    attr_names = [attr.get(ATTR_NAME) for attr in self.data.get(ATTR_DEFINITIONS)]
    raise ValueError('No attribute {0} in {1}'.format(attribute_name, attr_names))
Returns the proper attribute type for a given attribute name
def get_attribute_type(self, attribute_name, value=None):
    '\n        \n        '
    for attr in self.data.get(ATTR_DEFINITIONS):
        if (attr.get(ATTR_NAME) == attribute_name):
            return attr.get(ATTR_TYPE)
    if ((value is not None) and isinstance(value, dict)):
        for key in SHORT_ATTR_TYPES:
            if (key in value):
                return key
    attr_names = [attr.get(ATTR_NAME) for attr in self.data.get(ATTR_DEFINITIONS)]
    raise ValueError('No attribute {0} in {1}'.format(attribute_name, attr_names))