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