aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-22 09:06:28 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-22 09:06:28 +0100
commitf1fc099e34cdaf68b872ff1116e8f92c58a81c5e (patch)
tree782c59c9c9155faa6714d899e8ba44cac91b3826 /source/pyAggr3g470r.py
parentTypo... (diff)
downloadnewspipe-f1fc099e34cdaf68b872ff1116e8f92c58a81c5e.tar.gz
newspipe-f1fc099e34cdaf68b872ff1116e8f92c58a81c5e.tar.bz2
newspipe-f1fc099e34cdaf68b872ff1116e8f92c58a81c5e.zip
The /feed page now indicates if e-mail notification is activated in the pyAggr3g470r configuration file.
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index 2120a171..6f991e51 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -269,6 +269,8 @@ class pyAggr3g470r(object):
except KeyError:
return self.error("<p>This feed do not exists.</p>")
+ mail_notification_enabled = conf.MAIL_ENABLED
+
if articles != []:
today = datetime.datetime.now()
last_article = articles[0]["article_date"]
@@ -285,7 +287,7 @@ class pyAggr3g470r(object):
nb_articles_feed=nb_articles_feed, nb_articles_total=nb_articles_total, nb_unread_articles_feed=nb_unread_articles_feed, \
nb_favorites = nb_favorites, first_post_date=first_article, end_post_date=last_article, \
average=average, delta=delta, elapsed=elapsed, \
- tag_cloud=tag_cloud, word_size=word_size, mail_to=conf.mail_to)
+ tag_cloud=tag_cloud, word_size=word_size, mail_to=conf.mail_to, mail_notification_enabled=mail_notification_enabled)
feed.exposed = True
bgstack15