From b79cbe89f9daa1ce8d55623935aa2f76aecbf918 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Sun, 4 Mar 2012 10:12:30 +0100 Subject: All articles from a feed page is now working. --- pyAggr3g470r.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 21818515..c2c58caf 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -703,7 +703,8 @@ class Root: This page displays all articles of a feed. """ try: - feed = self.mongo.get_articles_from_collection(feed_id) + feed = self.mongo.get_collection(feed_id) + articles = self.mongo.get_articles_from_collection(feed_id) except KeyError: return self.error_page("This feed do not exists.") html = htmlheader() @@ -714,9 +715,9 @@ class Root: html += "
\n" html += self.create_list_of_feeds() html += """
""" - html += """

Articles of the feed %s


""" % (feed_id,) + html += """

Articles of the feed %s


""" % (feed["feed_title"],) - for article in feed: + for article in articles: if article["article_readed"] == False: # not readed articles are in bold @@ -730,7 +731,7 @@ class Root: like = "" # descrition for the CSS ToolTips - article_content = utils.clear_string(article["content"]) + article_content = utils.clear_string(article["article_content"]) if article_content: description = " ".join(article_content[:500].split(' ')[:-1]) else: -- cgit