aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--css/img/blogmarks.pngbin0 -> 195 bytes
-rw-r--r--css/img/digg.pngbin0 -> 358 bytes
-rw-r--r--css/img/reddit.pngbin0 -> 525 bytes
-rw-r--r--css/img/scoopeo.pngbin0 -> 295 bytes
-rw-r--r--pyAggr3g470r.py34
5 files changed, 32 insertions, 2 deletions
diff --git a/css/img/blogmarks.png b/css/img/blogmarks.png
new file mode 100644
index 00000000..2464e5bb
--- /dev/null
+++ b/css/img/blogmarks.png
Binary files differ
diff --git a/css/img/digg.png b/css/img/digg.png
new file mode 100644
index 00000000..097c4600
--- /dev/null
+++ b/css/img/digg.png
Binary files differ
diff --git a/css/img/reddit.png b/css/img/reddit.png
new file mode 100644
index 00000000..2d615f2a
--- /dev/null
+++ b/css/img/reddit.png
Binary files differ
diff --git a/css/img/scoopeo.png b/css/img/scoopeo.png
new file mode 100644
index 00000000..052c7dc8
--- /dev/null
+++ b/css/img/scoopeo.png
Binary files 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 += """<hr />\n<a href="%s">Complete story</a>\n<br />\n""" % \
(article[3].encode('utf-8'),)
+ # Share this article:
+ # on delicious
html += """<a href="http://delicious.com/post?url=%s&title=%s"
rel="noreferrer" target="_blank">\n
- <img src="/css/img/delicious.png" title="Post on del.iciou.us" /></a>""" % \
+ <img src="/css/img/delicious.png" title="Share on del.iciou.us" /></a> &nbsp;&nbsp; """ % \
+ (article[3].encode('utf-8'), article[2].encode('utf-8'))
+ # on Digg
+ html += """<a href="http://digg.com/submit?url=%s&title=%s"
+ rel="noreferrer" target="_blank">\n
+ <img src="/css/img/digg.png" title="Share on Digg" /></a> &nbsp;&nbsp; """ % \
+ (article[3].encode('utf-8'), article[2].encode('utf-8'))
+ # on reddit
+ html += """<a href="http://reddit.com/submit?url=%s&title=%s"
+ rel="noreferrer" target="_blank">\n
+ <img src="/css/img/reddit.png" title="Share on reddit" /></a> &nbsp;&nbsp; """ % \
+ (article[3].encode('utf-8'), article[2].encode('utf-8'))
+ # on Scoopeo
+ html += """<a href="http://scoopeo.com/scoop/new?newurl=%s&title=%s"
+ rel="noreferrer" target="_blank">\n
+ <img src="/css/img/scoopeo.png" title="Share on Scoopeo" /></a> &nbsp;&nbsp; """ % \
+ (article[3].encode('utf-8'), article[2].encode('utf-8'))
+ # on Blogmarks
+ html += """<a href="http://blogmarks.net/my/new.php?url=%s&title=%s"
+ rel="noreferrer" target="_blank">\n
+ <img src="/css/img/blogmarks.png" title="Share on Blogmarks" /></a>""" % \
(article[3].encode('utf-8'), article[2].encode('utf-8'))
html += "<hr />\n" + htmlfooter
return html
bgstack15