From e6bbb708cde59b3f32b69e50f6312652332f3a83 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Thu, 10 Jun 2010 09:12:54 +0200 Subject: Remove a feed from the file feed.lst. Some improvements. --- pyAggr3g470r.py | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'pyAggr3g470r.py') diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 85b3cee1..c5eb9b6a 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -187,11 +187,11 @@ class Root: if self.articles: html += "

Delete Feeds

\n" - html += """
\n""" for feed_id in self.articles.keys(): html += """\t\n""" % \ (feed_id, self.feeds[feed_id][3].encode('utf-8')) - html += """
\n""" + html += """\n""" html += """

Active e-mail notifications: %s

\n""" % \ (len([feed for feed in self.feeds.values() if feed[6] == "1"]),) html += """

You like %s article(s).

\n""" % \ @@ -773,6 +773,23 @@ class Root: add_feed.exposed = True + def remove_feed(self, url): + """ + Remove a feed from the file fee.lst. + """ + html = htmlheader + html += htmlnav + html += """
""" + utils.remove_feed(self.feeds[url][4]) + html+= """

All articles from this feed are removed from the base.


""" + html += """Back to the management page.
\n""" + html += "
\n" + html += htmlfooter + return html + + remove_feed.exposed = True + + def export(self, export_method): """ Export articles stored in the SQLite database in text files. -- cgit