From 9e084bfe7f987f0bf1b319834c3265bff7e97f36 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Mon, 20 Jun 2011 19:27:27 +0200 Subject: It is now possible to change the logo of a feed anytime via the feed management page. The data base is automatically uptodated. --- pyAggr3g470r.py | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) (limited to 'pyAggr3g470r.py') diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 57f2db1f..b9ee6d07 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -643,12 +643,21 @@ class Root: # - feed name; # - URL of the feed (not the site); html += "
\n

Edit this feed

\n" - html += """\n\n
\n""" % \ - (feed.feed_link,) - html += """\n\n
\n""" % \ - (feed.feed_link,) - html += """\n\n
\n""" % \ - (feed.feed_link,) + html += '\n\n
' + \ + '' + \ + """
\n""" % \ + (feed.feed_link,) + html += '\n\n
' + \ + '' + \ + """
\n""" % \ + (feed.feed_link,) + html += '\n\n
' + \ + '' + \ + """
\n""" % \ + (feed.feed_link,) dic = {} dic[feed.feed_id] = self.feeds[feed.feed_id] @@ -1137,6 +1146,21 @@ class Root: return html change_feed_name.exposed = True + + def change_feed_logo(self, feed_url, new_feed_logo): + """ + Enables to change the name of a feed. + """ + html = htmlheader() + html += htmlnav + html += """
""" + utils.change_feed_logo(feed_url, new_feed_logo) + html += "

The logo of the feed has been changed.

" + html += "
\n" + html += htmlfooter + return html + + change_feed_logo.exposed = True def set_max_articles(self, max_nb_articles=1): -- cgit