equal
deleted
inserted
replaced
1076 relations_by_rtype[rtype] = [(subjeid, objeid)] |
1076 relations_by_rtype[rtype] = [(subjeid, objeid)] |
1077 if not activintegrity: |
1077 if not activintegrity: |
1078 continue |
1078 continue |
1079 # take care to relation of cardinality '?1', as all eids will |
1079 # take care to relation of cardinality '?1', as all eids will |
1080 # be inserted later, we've remove duplicated eids since they |
1080 # be inserted later, we've remove duplicated eids since they |
1081 # won't be catched by `del_existing_rel_if_needed` |
1081 # won't be caught by `del_existing_rel_if_needed` |
1082 rdef = cnx.rtype_eids_rdef(rtype, subjeid, objeid) |
1082 rdef = cnx.rtype_eids_rdef(rtype, subjeid, objeid) |
1083 card = rdef.cardinality |
1083 card = rdef.cardinality |
1084 if card[0] in '?1': |
1084 if card[0] in '?1': |
1085 with cnx.security_enabled(read=False): |
1085 with cnx.security_enabled(read=False): |
1086 cnx.execute('DELETE X %s Y WHERE X eid %%(x)s, ' |
1086 cnx.execute('DELETE X %s Y WHERE X eid %%(x)s, ' |