backends.dlfp.feeds returns an Article object
This commit is contained in:
parent
4af91565af
commit
0afb45d777
2 changed files with 3 additions and 3 deletions
|
|
@ -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.')
|
||||
|
|
|
|||
|
|
@ -61,4 +61,4 @@ class ArticlesList:
|
|||
continue
|
||||
_id = m.group(1)
|
||||
article = klass(_id, item['link'], item['title'], item['author'], item['date_parsed'])
|
||||
yield _id, item['author'], item['title']
|
||||
yield article
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue