From 2c50e4495bfbdb04a05d07227c014ce5d0f28936 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Goncalves Date: Tue, 26 Aug 2014 19:33:44 -0300 Subject: From dict is working now --- service/pixelated/adapter/pixelated_mail.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'service/pixelated') 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 -- cgit v1.2.3