129 mappingfile = join(repo.config.apphome, mappingfile) |
129 mappingfile = join(repo.config.apphome, mappingfile) |
130 mapping = {} |
130 mapping = {} |
131 execfile(mappingfile, mapping) |
131 execfile(mappingfile, mapping) |
132 self.support_entities = mapping['support_entities'] |
132 self.support_entities = mapping['support_entities'] |
133 self.support_relations = mapping.get('support_relations', {}) |
133 self.support_relations = mapping.get('support_relations', {}) |
134 self.dont_cross_relations = mapping.get('dont_cross_relations', ()) |
134 self.dont_cross_relations = set(mapping.get('dont_cross_relations', ())) |
135 self.cross_relations = mapping.get('cross_relations', ()) |
135 self.cross_relations = set(mapping.get('cross_relations', ())) |
|
136 self.dont_cross_relations.add('owned_by') |
|
137 self.dont_cross_relations.add('created_by') |
136 baseurl = source_config.get('base-url') |
138 baseurl = source_config.get('base-url') |
137 if baseurl and not baseurl.endswith('/'): |
139 if baseurl and not baseurl.endswith('/'): |
138 source_config['base-url'] += '/' |
140 source_config['base-url'] += '/' |
139 self.config = source_config |
141 self.config = source_config |
140 myoptions = (('%s.latest-update-time' % self.uri, |
142 myoptions = (('%s.latest-update-time' % self.uri, |