From dbda004a50ca53ff1a00f048fc463fb266c402ba Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Wed, 24 Feb 2010 12:21:44 +0100 Subject: It is now possible to share articles with delicious, Digg, reddit, Scoopeo and Blogmarks. --- pyAggr3g470r.py | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'pyAggr3g470r.py') diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index d5b6f673..7c45cc9c 100644 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -3,7 +3,7 @@ __author__ = "Cedric Bonhomme" __version__ = "$Revision: 0.8 $" -__date__ = "$Date: 2010/02/23 $" +__date__ = "$Date: 2010/02/24 $" __copyright__ = "Copyright (c) 2010 Cedric Bonhomme" __license__ = "GPLv3" @@ -29,6 +29,14 @@ 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'}, \ + '/css/img/digg.png': {'tools.staticfile.on': True, \ + 'tools.staticfile.filename':path+'css/img/digg.png'}, \ + '/css/img/reddit.png': {'tools.staticfile.on': True, \ + 'tools.staticfile.filename':path+'css/img/reddit.png'}, \ + '/css/img/scoopeo.png': {'tools.staticfile.on': True, \ + 'tools.staticfile.filename':path+'css/img/scoopeo.png'}, \ + '/css/img/blogmarks.png': {'tools.staticfile.on': True, \ + 'tools.staticfile.filename':path+'css/img/blogmarks.png'}, \ '/var/histogram.png':{'tools.staticfile.on': True, \ 'tools.staticfile.filename':path+'var/histogram.png'}} @@ -257,9 +265,31 @@ class Root: html += "No description available." html += """
\nComplete story\n
\n""" % \ (article[3].encode('utf-8'),) + # Share this article: + # on delicious html += """\n - """ % \ +    """ % \ + (article[3].encode('utf-8'), article[2].encode('utf-8')) + # on Digg + html += """\n +    """ % \ + (article[3].encode('utf-8'), article[2].encode('utf-8')) + # on reddit + html += """\n +    """ % \ + (article[3].encode('utf-8'), article[2].encode('utf-8')) + # on Scoopeo + html += """\n +    """ % \ + (article[3].encode('utf-8'), article[2].encode('utf-8')) + # on Blogmarks + html += """\n + """ % \ (article[3].encode('utf-8'), article[2].encode('utf-8')) html += "
\n" + htmlfooter return html -- cgit