From ebee8232877ae4d6a297967dad3a9fe7ed40abd6 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Wed, 22 Sep 2010 21:27:37 +0200 Subject: Added more comments. Cleaner code. --- pyAggr3g470r.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pyAggr3g470r.py') diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 85605b88..1d530137 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -24,6 +24,7 @@ bindhost = "0.0.0.0" cherrypy.config.update({ 'server.socket_port': 12556, 'server.socket_host': bindhost}) +# static files path = {'/css/style.css': {'tools.staticfile.on': True, \ 'tools.staticfile.filename':utils.path+'/css/style.css'}, \ '/css/img/feed-icon-28x28.png': {'tools.staticfile.on': True, \ @@ -56,6 +57,10 @@ path = {'/css/style.css': {'tools.staticfile.on': True, \ 'tools.staticdir.dir': os.path.join(utils.path, './var/qrcode')}} def htmlheader(nb_unread_articles=""): + """ + Return the header of the HTML page with the number of unread articles + in the 'title' HTML tag.. + """ return '\n' + \ '' + \ '\n\t'+ nb_unread_articles +'pyAggr3g470r - RSS Feed Reader\n' + \ @@ -76,6 +81,10 @@ htmlnav = '\n