diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-08-12 16:49:49 -0300 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-08-12 18:50:21 -0300 |
commit | 8e0c0485e7c0fd1076291e1a07397726b46ab66e (patch) | |
tree | 4a5159e63d4ab73289b05ffc38bf900e4293ab68 /py-fake-service/app/adapter | |
parent | bf7b6aa193188c95c50cbc9d24f4be56afa6dc6f (diff) |
saving drafts in py-fake-service;
Diffstat (limited to 'py-fake-service/app/adapter')
-rw-r--r-- | py-fake-service/app/adapter/mail_service.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py-fake-service/app/adapter/mail_service.py b/py-fake-service/app/adapter/mail_service.py index 3d12feb5..815d3dc4 100644 --- a/py-fake-service/app/adapter/mail_service.py +++ b/py-fake-service/app/adapter/mail_service.py @@ -73,6 +73,10 @@ class MailService: return mail.ident + def update_draft(self, mail): + mail = Mail.from_json(mail) + self.mailset.update(mail) + return mail.ident |