Esempio n. 1
0
def convert_attribute(obj):
    """
    :type obj: :class:`mbdata.models.LinkAttribute`
    """
    attribute = models.attributeType()
    attribute.value = obj.attribute_type.name
    return attribute
Esempio n. 2
0
File: convert.py Progetto: mineo/sir
def convert_attribute(obj):
    """
    :type obj: :class:`mbdata.models.LinkAttribute`
    """
    attribute = models.attributeType()
    attribute.value = obj.attribute_type.name
    return attribute
Esempio n. 3
0
def convert_attribute(obj):
    """
    :type obj: :class:`mbdata.models.LinkAttribute`
    """
    attribute = models.attributeType()
    attribute.set_valueOf_(obj.attribute_type.name)
    attribute.set_type_id(obj.attribute_type.gid)
    return attribute
Esempio n. 4
0
def convert_attribute(obj):
    """
    :type obj: :class:`mbdata.models.LinkAttribute`
    """
    attribute = models.attributeType()
    attribute.set_valueOf_(obj.attribute_type.name)
    attribute.set_type_id(obj.attribute_type.gid)
    return attribute