server/sources/__init__.py
branchstable
changeset 3633 2d81178bea5f
parent 3041 782fa7566a22
child 3674 387d51af966d
child 3689 deb13e88e037
equal deleted inserted replaced
3632:874f5a73e89f 3633:2d81178bea5f
   189           specified in .cross_relations
   189           specified in .cross_relations
   190 
   190 
   191         * if this source doesn't support the relation, can be crossed unless
   191         * if this source doesn't support the relation, can be crossed unless
   192           explicitly specified in .dont_cross_relations
   192           explicitly specified in .dont_cross_relations
   193         """
   193         """
       
   194         # XXX find a way to have relation such as state_of in dont cross
       
   195         #     relation (eg composite relation without both end type available?
       
   196         #     card 1 relation ? ...)
   194         if self.support_relation(rtype):
   197         if self.support_relation(rtype):
   195             return rtype in self.cross_relations
   198             return rtype in self.cross_relations
   196         return rtype not in self.dont_cross_relations
   199         return rtype not in self.dont_cross_relations
   197 
   200 
   198     def eid2extid(self, eid, session=None):
   201     def eid2extid(self, eid, session=None):