Finished first version of newsfeed backend.

- Several feeds tested with QBoobMsg and apparently working correctly.
 - NewsfeedBackend.set_message_read() untested, but should be working.
 - weboob.tools.newsfeed provides content even when not provided as such by the
feed, using the "summary" instead.
This commit is contained in:
Clément Schreiner 2010-10-16 18:36:04 +02:00
commit 11ad4ac948
5 changed files with 89 additions and 73 deletions

View file

@ -18,7 +18,7 @@
from __future__ import with_statement
from weboob.tools.backend import BaseBackend
from weboob.tools.newsfeed import NewsFeed
from weboob.tools.newsfeed import Newsfeed
from weboob.capabilities.messages import ICapMessages, ICapMessagesPost, Message, Thread, CantSendMessage
from .browser import DLFP
@ -58,7 +58,7 @@ class DLFPBackend(BaseBackend, ICapMessages, ICapMessagesPost):
for what in whats:
for article in NewsFeed(what, url2id).iter_entries():
for article in Newsfeed(what, url2id).iter_entries():
thread = Thread(article.id)
thread.title = article.title
yield thread