aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-03-23 18:54:46 +0100
committercedricbonhomme <devnull@localhost>2010-03-23 18:54:46 +0100
commit80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0 (patch)
tree7145d5af3e41b23d0d28179ea82aada43e108014 /pyAggr3g470r.py
parentMinor improvements for the e-mail notification. (diff)
downloadnewspipe-80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0.tar.gz
newspipe-80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0.tar.bz2
newspipe-80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0.zip
Release 1.0. Mail notification. A lot of improvements and some bug fix.
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index c7b2e94f..a9d6af8f 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -2,7 +2,7 @@
#-*- coding: utf-8 -*-
__author__ = "Cedric Bonhomme"
-__version__ = "$Revision: 0.9 $"
+__version__ = "$Revision: 1.0 $"
__date__ = "$Date: 2010/03/01 $"
__copyright__ = "Copyright (c) 2010 Cedric Bonhomme"
__license__ = "GPLv3"
@@ -114,15 +114,15 @@ class Root:
html += "<br />\n"
html += """<a href="/all_articles/%s">All articles</a>""" % (rss_feed_id,)
- if self.feeds[rss_feed_id][6] == "0":
- html += """ <a href="/tuned/start:%s">Stay tuned</a>""" % (rss_feed_id,)
- else:
- html += """ <a href="/tuned/stop:%s">Stop staying tuned</a>""" % (rss_feed_id,)
html += """ <a href="/mark_as_read/Feed_FromMainPage:%s">Mark all as read</a>""" % (rss_feed_id,)
if self.feeds[rss_feed_id][1] != 0:
html += """ <a href="/unread/%s" title="Unread article(s)"
>Unread article(s) (%s)</a>""" % (rss_feed_id, \
self.feeds[rss_feed_id][1])
+ if self.feeds[rss_feed_id][6] == "0":
+ html += """<br />\n<a href="/mail_notification/start:%s">Stay tuned</a>""" % (rss_feed_id,)
+ else:
+ html += """<br />\n<a href="/mail_notification(/stop:%s">Stop staying tuned</a>""" % (rss_feed_id,)
html += """<h4><a href="/#top">Top</a></h4>"""
html += "<hr />\n"
html += htmlfooter
@@ -553,7 +553,7 @@ class Root:
mark_as_read.exposed = True
- def tuned(self, param):
+ def mail_notification(self, param):
"""
Enable or disable to notifications of news for a feed.
"""
@@ -579,7 +579,7 @@ class Root:
c.close()
return self.index()
- tuned.exposed = True
+ mail_notification.exposed = True
def update(self, path=None, event = None):
bgstack15