From 7b13eece4d6e53c8140dec6d7531cc82614e965a Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Thu, 7 Sep 2006 08:07:06 -0400 Subject: [PATCH] Incorporate patches and suggestions from Jacques Distler and Michael Koziarski --- THANKS | 8 +++++--- planet/spider.py | 2 +- planet/splice.py | 19 ++++++++++++++----- themes/asf/config.ini | 1 + themes/asf/index.html.xslt | 19 +++++++++++++++---- themes/common/images/venus.png | Bin 0 -> 570 bytes themes/mobile/config.ini | 1 + themes/mobile/mobile.html.xslt | 4 ++-- 8 files changed, 39 insertions(+), 15 deletions(-) create mode 100644 themes/common/images/venus.png diff --git a/THANKS b/THANKS index f7004e7..3f1c19e 100644 --- a/THANKS +++ b/THANKS @@ -1,6 +1,8 @@ -DeWitt Clinton - Mac OSX -Mary Gardiner - PythonPath -Elias Torres - FOAF OnlineAccounts +DeWitt Clinton - Mac OSX +Mary Gardiner - PythonPath +Elias Torres - FOAF OnlineAccounts +Jacques Distler - Template patches +Michael Koziarski - HTTP Auth fix This codebase represents a radical refactoring of Planet 2.0, which lists the following contributors: diff --git a/planet/spider.py b/planet/spider.py index 87271e6..5dd7d2d 100644 --- a/planet/spider.py +++ b/planet/spider.py @@ -191,7 +191,7 @@ def spiderFeed(feed): elif data.status == 500: data.feed['planet_message'] = "internal server error" elif data.status >= 400: - data.feed['planet_message'] = "http status %s" % status + data.feed['planet_message'] = "http status %s" % data.status # perform user configured scrub operations on the data scrub(feed, data) diff --git a/planet/splice.py b/planet/splice.py index fed2504..bd20d2f 100644 --- a/planet/splice.py +++ b/planet/splice.py @@ -34,11 +34,20 @@ def splice(): createTextElement(author, 'email', config.owner_email()) feed.appendChild(author) - createTextElement(feed, 'id', config.feed()) - link = doc.createElement('link') - link.setAttribute('rel', 'self') - link.setAttribute('href', config.feed()) - feed.appendChild(link) + if config.feed(): + createTextElement(feed, 'id', config.feed()) + link = doc.createElement('link') + link.setAttribute('rel', 'self') + link.setAttribute('href', config.feed()) + if config.feedtype(): + link.setAttribute('type', "application/%s+xml" % config.feedtype()) + feed.appendChild(link) + + if config.link(): + link = doc.createElement('link') + link.setAttribute('rel', 'alternate') + link.setAttribute('href', config.link()) + feed.appendChild(link) # insert entry information for mtime,file in dir[:items]: diff --git a/themes/asf/config.ini b/themes/asf/config.ini index 6e43cc4..cb372e7 100644 --- a/themes/asf/config.ini +++ b/themes/asf/config.ini @@ -17,3 +17,4 @@ bill_of_materials: images/feed-icon-10x10.png images/opml.png images/foaf.png + images/venus.png diff --git a/themes/asf/index.html.xslt b/themes/asf/index.html.xslt index acb60e3..e6e5a89 100644 --- a/themes/asf/index.html.xslt +++ b/themes/asf/index.html.xslt @@ -15,7 +15,7 @@ - @@ -92,8 +92,8 @@
Powered by:
- Planet + Venus
Export:
@@ -212,7 +212,7 @@ content - + @@ -227,4 +227,15 @@ + + + + + + + + + + + diff --git a/themes/common/images/venus.png b/themes/common/images/venus.png new file mode 100644 index 0000000000000000000000000000000000000000..685035deef15ff2e82bba825fa4d94a781870bb1 GIT binary patch literal 570 zcmV-A0>%A_P)f=0>XZ6dBBH zu-r7?W7Tx0jdLv4Og324uQR1kW5c{=f}swP!V^)*3W$ke+Io25tgezcoi)?#)=joP zxWQ-7N{1!=*6pRHQ|rwZG?|{-HJ3aOV@(D4qZ*fXDtq|qrPF!QdW*ZwcP_Hsv)pNM zuWfOH@$#vTE4xjmR~S8ibd#8Tg*6T1&%>DUNxRbVKUyi>)0hK{Powered by:
- Planet + Venus
Export: