summaryrefslogtreecommitdiff
path: root/service/pixelated/resources/mails_resource.py
diff options
context:
space:
mode:
authorNavaL <mnandri@thoughtworks.com>2016-01-07 15:39:34 +0100
committerNavaL <mnandri@thoughtworks.com>2016-01-11 16:56:29 +0100
commite10e43968e2a4a8ef3ef84fd7ff7e741af5e40b0 (patch)
tree1275f5e88dc13baf035fe96b94158ab3258901cb /service/pixelated/resources/mails_resource.py
parent0e39a9a95ba273545950c5db7f92132dd8b95395 (diff)
renamed attachment_id attribute to ident on POST response, to conform with the GET attachment API
Issue #548
Diffstat (limited to 'service/pixelated/resources/mails_resource.py')
-rw-r--r--service/pixelated/resources/mails_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/resources/mails_resource.py b/service/pixelated/resources/mails_resource.py
index f9397263..3a5b6286 100644
--- a/service/pixelated/resources/mails_resource.py
+++ b/service/pixelated/resources/mails_resource.py
@@ -180,7 +180,7 @@ class MailsResource(Resource):
def _fetch_attachment_contents(self, content_dict):
attachments = content_dict.get('attachments', []) if content_dict else []
for attachment in attachments:
- retrieved_attachment = yield self._mail_service.attachment(attachment['attachment_id'])
+ retrieved_attachment = yield self._mail_service.attachment(attachment['ident'])
attachment['raw'] = retrieved_attachment['content']
content_dict['attachments'] = attachments
defer.returnValue(content_dict)