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