server/repository.py
changeset 341 0a426be2f3a2
parent 0 b97547f5f1fa
child 450 5e14ea0e81c8
equal deleted inserted replaced
340:bfe0e95571aa 341:0a426be2f3a2
   894                 raise RTypeNotSupportedBySources(rtype)
   894                 raise RTypeNotSupportedBySources(rtype)
   895         else:
   895         else:
   896             source = subjsource
   896             source = subjsource
   897         return source
   897         return source
   898     
   898     
       
   899     @cached
       
   900     def rel_type_sources(self, rtype):
       
   901         return [source for source in self.sources
       
   902                 if source.support_relation(rtype) or rtype in source.dont_cross_relations]
       
   903     
   899     def locate_etype_source(self, etype):
   904     def locate_etype_source(self, etype):
   900         for source in self.sources:
   905         for source in self.sources:
   901             if source.support_entity(etype, 1):
   906             if source.support_entity(etype, 1):
   902                 return source
   907                 return source
   903         else:
   908         else: