From d91391657b8d994ead70a4d8638c44740ce5c254 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Wed, 24 Feb 2010 09:40:36 +0100 Subject: It is now possible to automatically post an article to your delicious account. --- pyAggr3g470r.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'pyAggr3g470r.py') diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 87be077b..d5b6f673 100644 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -8,6 +8,7 @@ __copyright__ = "Copyright (c) 2010 Cedric Bonhomme" __license__ = "GPLv3" import os +import sqlite3 import cherrypy import ConfigParser @@ -24,8 +25,10 @@ bindhost = "0.0.0.0" cherrypy.config.update({ 'server.socket_port': 12556, 'server.socket_host': bindhost}) -path = { '/css/style.css': {'tools.staticfile.on': True, \ +path = {'/css/style.css': {'tools.staticfile.on': True, \ 'tools.staticfile.filename':path+'css/style.css'}, \ + '/css/img/delicious.png': {'tools.staticfile.on': True, \ + 'tools.staticfile.filename':path+'css/img/delicious.png'}, \ '/var/histogram.png':{'tools.staticfile.on': True, \ 'tools.staticfile.filename':path+'var/histogram.png'}} @@ -254,8 +257,10 @@ class Root: html += "No description available." html += """
\nComplete story\n
\n""" % \ (article[3].encode('utf-8'),) - html += """Delicious""" % \ - (article[3].encode('utf-8'),) + html += """\n + """ % \ + (article[3].encode('utf-8'), article[2].encode('utf-8')) html += "
\n" + htmlfooter return html -- cgit