diff options
author | Bruno Wagner Goncalves <bwagner@thoughtworks.com> | 2014-08-26 19:33:44 -0300 |
---|---|---|
committer | Bruno Wagner Goncalves <bwagner@thoughtworks.com> | 2014-08-26 22:31:02 -0300 |
commit | 2c50e4495bfbdb04a05d07227c014ce5d0f28936 (patch) | |
tree | 10e927be1a133aa9bee9b56142c7e0c647707194 /service/pixelated | |
parent | e06316d7eb6610ac2ffd5e0a1309f6c40603c968 (diff) |
From dict is working now
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/adapter/pixelated_mail.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/service/pixelated/adapter/pixelated_mail.py b/service/pixelated/adapter/pixelated_mail.py index 3e4e415b..ff2c5edb 100644 --- a/service/pixelated/adapter/pixelated_mail.py +++ b/service/pixelated/adapter/pixelated_mail.py @@ -73,4 +73,9 @@ class PixelatedMail: @staticmethod def from_dict(mail_dict): - return PixelatedMail() + mail = PixelatedMail() + mail.headers = mail_dict['header'] + mail.body = mail_dict['body'] + mail.ident = mail_dict['ident'] + mail.tags = mail_dict['tags'] + return mail |