1544 subjects_by_types = {} |
1544 subjects_by_types = {} |
1545 objects_by_types = {} |
1545 objects_by_types = {} |
1546 activintegrity = session.is_hook_category_activated('activeintegrity') |
1546 activintegrity = session.is_hook_category_activated('activeintegrity') |
1547 for rtype, eids_subj_obj in relations.iteritems(): |
1547 for rtype, eids_subj_obj in relations.iteritems(): |
1548 if server.DEBUG & server.DBG_REPO: |
1548 if server.DEBUG & server.DBG_REPO: |
1549 for subjeid, objeid in relations: |
1549 for subjeid, objeid in eids_subj_obj: |
1550 print 'ADD relation', subjeid, rtype, objeid |
1550 print 'ADD relation', subjeid, rtype, objeid |
1551 for subjeid, objeid in eids_subj_obj: |
1551 for subjeid, objeid in eids_subj_obj: |
1552 source = self.locate_relation_source(session, subjeid, rtype, objeid) |
1552 source = self.locate_relation_source(session, subjeid, rtype, objeid) |
1553 if source not in sources: |
1553 if source not in sources: |
1554 relations_by_rtype = {} |
1554 relations_by_rtype = {} |