equal
deleted
inserted
replaced
122 def delete_entities(self, eidtypes): |
122 def delete_entities(self, eidtypes): |
123 """delete entities from the repository""" |
123 """delete entities from the repository""" |
124 redirect_info = set() |
124 redirect_info = set() |
125 eidtypes = tuple(eidtypes) |
125 eidtypes = tuple(eidtypes) |
126 for eid, etype in eidtypes: |
126 for eid, etype in eidtypes: |
127 entity = self.req.eid_rset(eid, etype).get_entity(0, 0) |
127 entity = self.req.entity_from_eid(eid, etype) |
128 path, params = entity.after_deletion_path() |
128 path, params = entity.after_deletion_path() |
129 redirect_info.add( (path, tuple(params.iteritems())) ) |
129 redirect_info.add( (path, tuple(params.iteritems())) ) |
130 entity.delete() |
130 entity.delete() |
131 if len(redirect_info) > 1: |
131 if len(redirect_info) > 1: |
132 # In the face of ambiguity, refuse the temptation to guess. |
132 # In the face of ambiguity, refuse the temptation to guess. |