equal
deleted
inserted
replaced
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 |