equal
deleted
inserted
replaced
303 eidtypes = tuple(eidtypes) |
303 eidtypes = tuple(eidtypes) |
304 for eid, etype in eidtypes: |
304 for eid, etype in eidtypes: |
305 entity = self._cw.entity_from_eid(eid, etype) |
305 entity = self._cw.entity_from_eid(eid, etype) |
306 path, params = entity.cw_adapt_to('IEditControl').after_deletion_path() |
306 path, params = entity.cw_adapt_to('IEditControl').after_deletion_path() |
307 redirect_info.add( (path, tuple(params.iteritems())) ) |
307 redirect_info.add( (path, tuple(params.iteritems())) ) |
308 entity.delete() |
308 entity.cw_delete() |
309 if len(redirect_info) > 1: |
309 if len(redirect_info) > 1: |
310 # In the face of ambiguity, refuse the temptation to guess. |
310 # In the face of ambiguity, refuse the temptation to guess. |
311 self._after_deletion_path = 'view', () |
311 self._after_deletion_path = 'view', () |
312 else: |
312 else: |
313 self._after_deletion_path = iter(redirect_info).next() |
313 self._after_deletion_path = iter(redirect_info).next() |