Commit 0afb45d7 authored by Romain Bignon's avatar Romain Bignon

backends.dlfp.feeds returns an Article object

parent 4af91565
......@@ -28,6 +28,6 @@ class DLFPBackend(Backend, ICapMessages, ICapMessagesReply):
def iter_new_messages(self, thread=None):
articles_list = ArticlesList('newspaper')
for id, author, title in articles_list.iter_articles():
yield Message('threadid', id, title, author, signature='Bite bite bite bite',
for article in articles_list.iter_articles():
yield Message('threadid', article._id, article.title,, signature='Bite bite bite bite',
content='Content content\nContent content.')
......@@ -61,4 +61,4 @@ class ArticlesList:
_id =
article = klass(_id, item['link'], item['title'], item['author'], item['date_parsed'])
yield _id, item['author'], item['title']
yield article
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment