diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-07-31 17:04:25 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:31 +0200 |
commit | 38d810d338ce671b6389cd47d665b87798bcd65c (patch) | |
tree | cabce0d36989a2645cfafc50a503623a8d0a92ef /service/pixelated/resources | |
parent | 77cb8b69610a893becd99286d85633e5317fedd2 (diff) |
First steps migrating mail service to new data model.
Diffstat (limited to 'service/pixelated/resources')
-rw-r--r-- | service/pixelated/resources/mails_resource.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/pixelated/resources/mails_resource.py b/service/pixelated/resources/mails_resource.py index 1056dcdb..d4e8372e 100644 --- a/service/pixelated/resources/mails_resource.py +++ b/service/pixelated/resources/mails_resource.py @@ -146,6 +146,7 @@ class MailsResource(Resource): return server.NOT_DONE_YET def render_PUT(self, request): + print '\nrender_PUT\n' content_dict = json.loads(request.content.read()) _mail = InputMail.from_dict(content_dict) draft_id = content_dict.get('ident') @@ -163,6 +164,7 @@ class MailsResource(Resource): defer_response(self._draft_service.update_draft(draft_id, _mail)) deferred_check.addCallback(return422otherwise) else: + print '\nCreating draft\n' defer_response(self._draft_service.create_draft(_mail)) return server.NOT_DONE_YET |