From cea5c67ef42b612473b101e41a54adb689e4ce45 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Mon, 1 Feb 2010 12:44:22 +0100 Subject: Added a menu to access more faster to feeds and some improvements of the CSS. --- css/style.css | 6 ++++-- feedgetter.py | 4 ++-- pyAggr3g470r.py | 32 +++++++++++++++++++------------- 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/css/style.css b/css/style.css index cad818f1..b1039673 100644 --- a/css/style.css +++ b/css/style.css @@ -10,10 +10,10 @@ html, body { color: black; } -body { +body { text-align: justify; font: normal .9em/1.5em Cambria, Georgia, "Trebuchet MS", Verdana, sans-serif; - overflow-y: scroll; + } code, pre { @@ -248,6 +248,8 @@ blockquote.right { .left { float: left; + position: absolute; + } .tex { diff --git a/feedgetter.py b/feedgetter.py index 3d23b7a5..ec750496 100644 --- a/feedgetter.py +++ b/feedgetter.py @@ -2,8 +2,8 @@ #-*- coding: utf-8 -*- __author__ = "Cedric Bonhomme" -__version__ = "$Revision: 0.2 $" -__date__ = "$Date: 2010/31/01 $" +__version__ = "$Revision: 0.3 $" +__date__ = "$Date: 2010/02/01 $" __copyright__ = "Copyright (c) 2010 Cedric Bonhomme" __license__ = "GPLv3" diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 67cdd3d4..bb4dbcea 100644 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -2,8 +2,8 @@ #-*- coding: utf-8 -*- __author__ = "Cedric Bonhomme" -__version__ = "$Revision: 0.2 $" -__date__ = "$Date: 2010/31/01 $" +__version__ = "$Revision: 0.3 $" +__date__ = "$Date: 2010/02/01 $" __copyright__ = "Copyright (c) 2010 Cedric Bonhomme" __license__ = "GPLv3" @@ -42,27 +42,33 @@ class Root: """ Main page containing the list of feeds and articles. """ + self.dic = self.load_feed() html = htmlheader html += htmlnav - html += """
""" - html += """

Search

""" - html += """
""" - html += """Management of feed""" - html += """
""" + html += """
\n""" + html += """

Search

\n""" + html += """
\n""" + html += """Management of feed\n""" + html += "
\n" + html += "Your feeds:
\n" + for rss_feed in self.dic.keys(): + html += """%s
\n""" % (rss_feed.encode('utf-8'), \ + rss_feed.encode('UTF-8')) + html += """
\n
\n""" - self.dic = self.load_feed() for rss_feed in self.dic.keys(): - html += '

' + rss_feed.encode('utf-8') + "

" + html += '

' + \ + '' + rss_feed.encode('utf-8') + "

\n" for article in self.dic[rss_feed]: html += article[1].encode('utf-8') + " - " + \ '' + article[2].encode('utf-8') + "" + \ """ - [description]""" % (article[0].encode('utf-8'),) + \ - "
" - + "
\n" + html += "
\n" html += htmlfooter return html -- cgit