equal
deleted
inserted
replaced
1175 if scleanup is not None: |
1175 if scleanup is not None: |
1176 source = self.sources_by_eid[scleanup] |
1176 source = self.sources_by_eid[scleanup] |
1177 # delete remaining relations: if user can delete the entity, he can |
1177 # delete remaining relations: if user can delete the entity, he can |
1178 # delete all its relations without security checking |
1178 # delete all its relations without security checking |
1179 with security_enabled(session, read=False, write=False): |
1179 with security_enabled(session, read=False, write=False): |
1180 eids = [_e.eid for _e in entities] |
1180 in_eids = ','.join([str(_e.eid) for _e in entities]) |
1181 in_eids = ','.join((str(eid) for eid in eids)) |
|
1182 for rschema, _, role in entities[0].e_schema.relation_definitions(): |
1181 for rschema, _, role in entities[0].e_schema.relation_definitions(): |
1183 rtype = rschema.type |
1182 rtype = rschema.type |
1184 if rtype in schema.VIRTUAL_RTYPES or rtype in pendingrtypes: |
1183 if rtype in schema.VIRTUAL_RTYPES or rtype in pendingrtypes: |
1185 continue |
1184 continue |
1186 if role == 'subject': |
1185 if role == 'subject': |