From 077e4100160ba58ee2abf91c0572ca1c0962277e Mon Sep 17 00:00:00 2001 From: NavaL Date: Fri, 12 Feb 2016 14:53:41 -0200 Subject: Revert "Revert "Issue #549 - Implemented remove attachment"" This reverts commit 3c6b905d7e5b78e521b2e7692e5e32b7b0c226bc. --- service/pixelated/resources/attachments_resource.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'service/pixelated/resources/attachments_resource.py') diff --git a/service/pixelated/resources/attachments_resource.py b/service/pixelated/resources/attachments_resource.py index 086f6e4e..db8b4df1 100644 --- a/service/pixelated/resources/attachments_resource.py +++ b/service/pixelated/resources/attachments_resource.py @@ -72,6 +72,9 @@ class AttachmentResource(Resource): match = re.compile('([A-Za-z-]+\/[A-Za-z-]+)').search(content_type) return match.group(1) + def render_DELETE(self, request): + self.mail_service.delete_attachment(self.attachment_id) + class AttachmentsResource(BaseResource): BASE_URL = 'attachment' -- cgit v1.2.3