From cca5e98888e929ffbc277bc25a1cd53924e34b26 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sun, 26 Sep 2010 23:37:03 +0200 Subject: [PATCH] set the FIELDS attribute to Thread and Message classes --- weboob/capabilities/messages.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weboob/capabilities/messages.py b/weboob/capabilities/messages.py index 956ccd82..8e3de899 100644 --- a/weboob/capabilities/messages.py +++ b/weboob/capabilities/messages.py @@ -31,6 +31,8 @@ class Message(CapBaseObject): IS_ACCUSED = 0x004 # The receiver has read this message IS_NOT_ACCUSED = 0x008 # The receiver has not read this message + FIELDS = ('thread', 'title', 'sender', 'receiver', 'date', 'parent', 'content', 'signature', 'children', 'flags') + def __init__(self, thread, id, title=NotLoaded, sender=NotLoaded, @@ -90,6 +92,8 @@ class Message(CapBaseObject): return result.encode('utf-8') class Thread(CapBaseObject): + FIELDS = ('root', 'title', 'date', 'nb_messages', 'nb_unread') + def __init__(self, id): CapBaseObject.__init__(self, id) self.root = NotLoaded