server/sources/pyrorql.py
branchstable
changeset 6058 151b6b73acc6
parent 5643 fd240f98a3ee
child 6128 fbb8398f80dc
equal deleted inserted replaced
6057:cb5c8852cbda 6058:151b6b73acc6
   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,