From bcc3ed4d6b3cbcac65623c5e72abecf836e5015e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 2 Jan 2011 19:34:26 +0100 Subject: [PATCH] Add RSS for planet.ipfire.org. --- www/templates/planet-main.html | 2 +- www/templates/rss.xml | 16 ++-- www/webapp/__init__.py | 6 +- www/webapp/handlers_base.py | 14 ++- www/webapp/handlers_planet.py | 4 +- www/webapp/handlers_rss.py | 154 +++++++++++++++++++++++++++++++++ 6 files changed, 181 insertions(+), 15 deletions(-) create mode 100644 www/webapp/handlers_rss.py diff --git a/www/templates/planet-main.html b/www/templates/planet-main.html index af9d02b..388e12c 100644 --- a/www/templates/planet-main.html +++ b/www/templates/planet-main.html @@ -14,7 +14,7 @@ zu informieren.

- Um den Aufwand für die Entwickler in Maßen zu halten sind leider + Um den Aufwand für die Entwickler in Maßen zu halten sind alle Einträge nur auf Englisch verfügbar.

{% else %} diff --git a/www/templates/rss.xml b/www/templates/rss.xml index f87c9dd..d4809bf 100644 --- a/www/templates/rss.xml +++ b/www/templates/rss.xml @@ -1,19 +1,19 @@ - IPFire.org - News - http://www.ipfire.org/ - IPFire News Feed + {{ title }} + {{ url }} + {{ description }} {{ lang }} - IPFire-Team + IPFire Team Thu, 8 Nov 2007 00:00:00 +0200 {% for item in items %} {{ item.title }} - http://www.ipfire.org/news/{{ item.slug }} - {{ item.author.email }} ({{ item.author.cn }}) - {{ item.uuid }} - {{ item.date }} + {{ item.url }} + {{ item.author.mail }} ({{ item.author.name }}) + {{ item.url }} + {{ item.date.strftime("%a, %d %b %Y %H:%M:%S +0200") }}