From 482494baf4aaa97760fe499e4c18048f17ccb76d Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Tue, 7 Jul 2015 18:31:26 +0200 Subject: [PATCH] s/attachment/material/ in event log messages --- indico/modules/attachments/logging.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indico/modules/attachments/logging.py b/indico/modules/attachments/logging.py index 4e56b3878..0fd41d87d 100644 --- a/indico/modules/attachments/logging.py +++ b/indico/modules/attachments/logging.py @@ -102,7 +102,7 @@ def _log_attachment_created(attachment, user, **kwargs): if attachment.folder.link_type == LinkType.category: return event = attachment.folder.linked_object.getConference() - _log(event, EventLogKind.positive, 'Added attachment "{}"'.format(attachment.title), user, + _log(event, EventLogKind.positive, 'Added material "{}"'.format(attachment.title), user, _get_attachment_data(attachment)) @@ -111,7 +111,7 @@ def _log_attachment_deleted(attachment, user, **kwargs): if attachment.folder.link_type == LinkType.category: return event = attachment.folder.linked_object.getConference() - _log(event, EventLogKind.negative, 'Deleted attachment "{}"'.format(attachment.title), user, + _log(event, EventLogKind.negative, 'Deleted material "{}"'.format(attachment.title), user, _get_attachment_data(attachment)) @@ -120,5 +120,5 @@ def _log_attachment_updated(attachment, user, **kwargs): if attachment.folder.link_type == LinkType.category: return event = attachment.folder.linked_object.getConference() - _log(event, EventLogKind.change, 'Updated attachment "{}"'.format(attachment.title), user, + _log(event, EventLogKind.change, 'Updated material "{}"'.format(attachment.title), user, _get_attachment_data(attachment)) -- 2.11.4.GIT