aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-03-11 09:11:24 +0100
committercedricbonhomme <devnull@localhost>2012-03-11 09:11:24 +0100
commit944fcb9b48ad2d5edc707f669b8541ddc0fac798 (patch)
tree0629b7b74c852e85434fc041b00fb9aaa71e7351
parentMinor bugfix in search() (variable with duplicate name). (diff)
downloadnewspipe-944fcb9b48ad2d5edc707f669b8541ddc0fac798.tar.gz
newspipe-944fcb9b48ad2d5edc707f669b8541ddc0fac798.tar.bz2
newspipe-944fcb9b48ad2d5edc707f669b8541ddc0fac798.zip
Export an article to plain text.
-rwxr-xr-xpyAggr3g470r.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index ba103355..d3231260 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -927,15 +927,16 @@ class Root:
"""
try:
feed_id, article_id = target.split(':')
- feed, article = self.feeds[feed_id], self.feeds[feed_id].articles[article_id]
+ feed = self.mongo.get_collection(feed_id)
+ article = self.mongo.get_article(feed_id, article_id)
except:
return self.error_page("Bad URL. This article do not exists.")
html = htmlheader()
html += htmlnav
html += """<div class="left inner">"""
html += """<h1><i>%s</i> from <a href="/articles/%s">%s</a></h1>\n<br />\n"""% \
- (article.article_title, feed_id, feed.feed_title)
- description = utils.clear_string(article.article_description)
+ (article["article_title"], feed_id, feed["feed_title"])
+ description = utils.clear_string(article["article_content"])
if description:
html += description
else:
bgstack15