From f80c93e697fb3aace14f515ada8bedab2163ffc7 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 26 Nov 2012 08:03:31 +0100 Subject: Minor changes. --- source/pyAggr3g470r.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index 59f323e9..3f74deba 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -40,9 +40,9 @@ __license__ = "GPLv3" import os import re -import cherrypy import calendar +import cherrypy from mako.template import Template from mako.lookup import TemplateLookup lookup = TemplateLookup(directories=['templates']) @@ -275,7 +275,6 @@ class pyAggr3g470r(object): nb_favorites = self.mongo.nb_favorites() nb_articles = self.mongo.nb_articles() nb_unread_articles = self.mongo.nb_unread_articles() - tmpl = lookup.get_template("management.html") return tmpl.render(feeds=feeds, nb_mail_notifications=nb_mail_notifications, \ nb_favorites=nb_favorites, nb_articles=nb_articles, \ @@ -779,7 +778,7 @@ class pyAggr3g470r(object): return self.error("Bad URL. This article do not exists.") description = utils.clear_string(article["article_content"]) if not description: - description += "Unvailable" + description = "Unvailable" tmpl = lookup.get_template("plain_text.html") return tmpl.render(feed_title=feed["feed_title"], \ article_title=article["article_title"], \ -- cgit