Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ikaaro/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,10 @@ def copy_resource(self, source_path, target_path, exclude_patterns=None):
# Check compatibility
if (not target_parent.can_paste(source)
or not source.can_paste_into(target_parent)):
source_title = source.class_title.gettext().encode('utf8')
parent_title = target_parent.class_title.gettext().encode('utf8')
message = 'resource type "{0}" cannot be copied into type "{1}"'
message = message.format(source.class_title.gettext(),
target_parent.class_title.gettext())
message = message.format(source_title, parent_title)
raise ConsistencyError(message)

# Copy the metadata
Expand Down