Commit e86c6071 authored by Jérome Perrin's avatar Jérome Perrin

TrashTool: fail if backup object container already exist

This is not supposed to happen and can hide errors.
parent 43adfa98
......@@ -80,9 +80,6 @@ class TrashTool(BaseTool):
# backup the object
# here we choose export/import to copy because cut/paste
# do too many things and check for what we want to do
obj = None
if object_id not in backup_object_container.objectIds():
# export object
object_path = container_path + [object_id]
obj = self.unrestrictedTraverse(object_path, None)
if obj is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment