Exemple #1
0
def convert_place_relation_list(obj):
    """
    :type obj: :class:`[mbdata.models.LinkEventPlace]`
    """
    relation_list = models.relation_list(target_type="place")
    [relation_list.add_relation(convert_place_relation(p)) for p in obj]
    return relation_list
Exemple #2
0
def convert_event_area_relation_list(obj):
    """
    :type obj: :class:`[mbdata.models.LinkAreaEvent]`
    """
    relations = models.relation_list(target_type="area")
    [relations.add_relation(convert_event_area_relation(a)) for a in obj]
    return relations
Exemple #3
0
def convert_artist_work_relation_list(obj):
    """
    :type obj: :class:`[mbdata.models.LinkArtistWork]`
    """
    relation_list = models.relation_list(target_type="artist")
    [relation_list.add_relation(convert_artist_work_relation(r)) for r in obj]
    return relation_list
Exemple #4
0
def convert_area_relation_list(obj):
    """
    :type obj: :class:`[mbdata.models.LinkAreaArea]`
    """
    relations = models.relation_list(target_type="area")
    [relations.add_relation(convert_area_relation(a)) for a in obj]
    return relations
Exemple #5
0
def convert_artist_work_relation_list(obj):
    """
    :type obj: :class:`[mbdata.models.LinkArtistWork]`
    """
    relation_list = models.relation_list(target_type="artist")
    [relation_list.add_relation(convert_artist_work_relation(r)) for r in obj]
    return relation_list
Exemple #6
0
def convert_place_relation_list(obj):
    """
    :type obj: :class:`[mbdata.models.LinkEventPlace]`
    """
    relation_list = models.relation_list(target_type="place")
    [relation_list.add_relation(convert_place_relation(p)) for p in obj]
    return relation_list
Exemple #7
0
def convert_recording_work_relation_list(obj):
    """
    :type obj: :class:`[mbdata.models.LinkRecordingWork]`
    """
    relation_list = models.relation_list(target_type="recording")
    [relation_list.add_relation(convert_recording_work_relation(r)) for r in obj]
    return relation_list
Exemple #8
0
def convert_recording_work_relation_list(obj):
    """
    :type obj: :class:`[mbdata.models.LinkRecordingWork]`
    """
    relation_list = models.relation_list(target_type="recording")
    [
        relation_list.add_relation(convert_recording_work_relation(r))
        for r in obj
    ]
    return relation_list
Exemple #9
0
def convert_release_relation_list(obj):
    relation_list = models.relation_list(target_type="release")
    [relation_list.add_relation(convert_release_relation(r)) for r in obj]
    return relation_list
Exemple #10
0
def convert_release_relation_list(obj):
    relation_list = models.relation_list(target_type="release")
    [relation_list.add_relation(convert_release_relation(r)) for r in obj]
    return relation_list