From 4489356623bc211bb7d8333292ce35a9533ce360 Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Wed, 21 May 2014 17:53:53 +0200 Subject: [PATCH] [Message] remove required items in Message constructor --- weboob/capabilities/messages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/capabilities/messages.py b/weboob/capabilities/messages.py index c1fad429..f5a0eb70 100644 --- a/weboob/capabilities/messages.py +++ b/weboob/capabilities/messages.py @@ -60,7 +60,8 @@ class Message(_Message): children = Field('Children fields', list) flags = IntField('Flags (IS_* constants)', default=0) - def __init__(self, thread, id, + def __init__(self, thread=NotLoaded, + id=NotLoaded, title=NotLoaded, sender=NotLoaded, receivers=NotLoaded, @@ -71,7 +72,6 @@ class Message(_Message): children=NotLoaded, flags=0): CapBaseObject.__init__(self, id) - assert thread is not None self.thread = thread self.title = title self.sender = sender