changeset 153:15a6f5e478ad

Rewrite links to use article.gmane.org.
author Martin Geisler <mg@daimi.au.dk>
date Fri, 01 Aug 2008 12:43:23 +0200
parents 9d7f6078264a
children bcb2d4748450
files update_news.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/update_news.py	Mon Jul 28 00:11:30 2008 +0200
+++ b/update_news.py	Fri Aug 01 12:43:23 2008 +0200
@@ -113,6 +113,12 @@
     #tip_age = age(repository_data.entries[0].updated_parsed)
     #now = strftime("%Y-%m-%d %H:%M UTC", gmtime())
 
+    logging.info("Rewriting Gmane links")
+    for entry in viff_devel_data.entries:
+        entry.link = entry.link.replace("http://permalink.gmane.org/",
+                                        "http://article.gmane.org/")
+
+
     count = 4
     repository_entries = repository_data.entries[:count]
     viff_devel_entries = [e for e in viff_devel_data.entries