misc/migration/3.11.0_Any.py
changeset 8696 0bb18407c053
parent 8483 4ba11607d84a
child 9450 af4b93bc38a5
equal deleted inserted replaced
8695:358d8bed9626 8696:0bb18407c053
    44                    '%s relation should not be in dont_cross_relations' % rtype
    44                    '%s relation should not be in dont_cross_relations' % rtype
    45             assert rtype not in mapping['support_relations'], \
    45             assert rtype not in mapping['support_relations'], \
    46                    '%s relation should not be in support_relations' % rtype
    46                    '%s relation should not be in support_relations' % rtype
    47         return mapping
    47         return mapping
    48     # for now, only pyrorql sources have a mapping
    48     # for now, only pyrorql sources have a mapping
    49     for source in repo.sources_by_uri.values():
    49     for source in repo.sources_by_uri.itervalues():
    50         if not isinstance(source, PyroRQLSource):
    50         if not isinstance(source, PyroRQLSource):
    51             continue
    51             continue
    52         sourceentity = session.entity_from_eid(source.eid)
    52         sourceentity = session.entity_from_eid(source.eid)
    53         mapping = load_mapping_file(source)
    53         mapping = load_mapping_file(source)
    54         # write mapping as entities
    54         # write mapping as entities