backends.dlfp.feeds returns an Article object

This commit is contained in:
Romain Bignon 2010-03-23 11:55:52 +01:00
commit 0afb45d777
2 changed files with 3 additions and 3 deletions

View file

@ -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, article.author, signature='Bite bite bite bite',
content='Content content\nContent content.')