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. --- css/img/blogmarks.png | Bin 0 -> 195 bytes css/img/digg.png | Bin 0 -> 358 bytes css/img/reddit.png | Bin 0 -> 525 bytes css/img/scoopeo.png | Bin 0 -> 295 bytes pyAggr3g470r.py | 34 ++++++++++++++++++++++++++++++++-- 5 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 css/img/blogmarks.png create mode 100644 css/img/digg.png create mode 100644 css/img/reddit.png create mode 100644 css/img/scoopeo.png diff --git a/css/img/blogmarks.png b/css/img/blogmarks.png new file mode 100644 index 00000000..2464e5bb Binary files /dev/null and b/css/img/blogmarks.png differ diff --git a/css/img/digg.png b/css/img/digg.png new file mode 100644 index 00000000..097c4600 Binary files /dev/null and b/css/img/digg.png differ diff --git a/css/img/reddit.png b/css/img/reddit.png new file mode 100644 index 00000000..2d615f2a Binary files /dev/null and b/css/img/reddit.png differ diff --git a/css/img/scoopeo.png b/css/img/scoopeo.png new file mode 100644 index 00000000..052c7dc8 Binary files /dev/null and b/css/img/scoopeo.png differ 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