diff options
author | Jefferson Stachelski <jstachel@thoughtworks.com> | 2016-02-03 14:31:53 -0200 |
---|---|---|
committer | Jefferson Stachelski <jstachel@thoughtworks.com> | 2016-02-04 23:54:15 -0200 |
commit | 9442be5c230e286073244451189ffc05ae6c8083 (patch) | |
tree | e1113019780b6a7fcde3f0c7dec2991fc02b7c73 /service/pixelated/resources | |
parent | 746069cb8fe957aa6206f4c57ec63704838546c1 (diff) |
Issue #549 - Implemented remove attachment
Diffstat (limited to 'service/pixelated/resources')
-rw-r--r-- | service/pixelated/resources/attachments_resource.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/service/pixelated/resources/attachments_resource.py b/service/pixelated/resources/attachments_resource.py index 249d268a..401fb321 100644 --- a/service/pixelated/resources/attachments_resource.py +++ b/service/pixelated/resources/attachments_resource.py @@ -71,6 +71,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' |