server/sources/__init__.py
changeset 9492 c7fc56eecd1a
parent 9292 4b3e657d17ab
child 9543 39f981482e34
equal deleted inserted replaced
9484:31f070752462 9492:c7fc56eecd1a
   342         * if this source doesn't support the relation, can be crossed unless
   342         * if this source doesn't support the relation, can be crossed unless
   343           explicitly specified in .dont_cross_relations
   343           explicitly specified in .dont_cross_relations
   344         """
   344         """
   345         # XXX find a way to have relation such as state_of in dont cross
   345         # XXX find a way to have relation such as state_of in dont cross
   346         #     relation (eg composite relation without both end type available?
   346         #     relation (eg composite relation without both end type available?
   347         #     card 1 relation ? ...)
   347         #     card 1 relation? ...)
   348         if self.support_relation(rtype):
   348         if self.support_relation(rtype):
   349             return rtype in self.cross_relations
   349             return rtype in self.cross_relations
   350         return rtype not in self.dont_cross_relations
   350         return rtype not in self.dont_cross_relations
   351 
   351 
   352     def before_entity_insertion(self, session, lid, etype, eid, sourceparams):
   352     def before_entity_insertion(self, session, lid, etype, eid, sourceparams):