server/repository.py
changeset 341 0a426be2f3a2
parent 0 b97547f5f1fa
child 450 5e14ea0e81c8
--- a/server/repository.py	Wed Jan 07 14:55:16 2009 +0100
+++ b/server/repository.py	Wed Jan 07 14:57:03 2009 +0100
@@ -896,6 +896,11 @@
             source = subjsource
         return source
     
+    @cached
+    def rel_type_sources(self, rtype):
+        return [source for source in self.sources
+                if source.support_relation(rtype) or rtype in source.dont_cross_relations]
+    
     def locate_etype_source(self, etype):
         for source in self.sources:
             if source.support_entity(etype, 1):