Incorporate patches and suggestions from Jacques Distler and Michael Koziarski
This commit is contained in:
parent
600303a2c8
commit
7b13eece4d
8
THANKS
8
THANKS
@ -1,6 +1,8 @@
|
|||||||
DeWitt Clinton - Mac OSX
|
DeWitt Clinton - Mac OSX
|
||||||
Mary Gardiner - PythonPath
|
Mary Gardiner - PythonPath
|
||||||
Elias Torres - FOAF OnlineAccounts
|
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
|
This codebase represents a radical refactoring of Planet 2.0, which lists
|
||||||
the following contributors:
|
the following contributors:
|
||||||
|
@ -191,7 +191,7 @@ def spiderFeed(feed):
|
|||||||
elif data.status == 500:
|
elif data.status == 500:
|
||||||
data.feed['planet_message'] = "internal server error"
|
data.feed['planet_message'] = "internal server error"
|
||||||
elif data.status >= 400:
|
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
|
# perform user configured scrub operations on the data
|
||||||
scrub(feed, data)
|
scrub(feed, data)
|
||||||
|
@ -34,11 +34,20 @@ def splice():
|
|||||||
createTextElement(author, 'email', config.owner_email())
|
createTextElement(author, 'email', config.owner_email())
|
||||||
feed.appendChild(author)
|
feed.appendChild(author)
|
||||||
|
|
||||||
createTextElement(feed, 'id', config.feed())
|
if config.feed():
|
||||||
link = doc.createElement('link')
|
createTextElement(feed, 'id', config.feed())
|
||||||
link.setAttribute('rel', 'self')
|
link = doc.createElement('link')
|
||||||
link.setAttribute('href', config.feed())
|
link.setAttribute('rel', 'self')
|
||||||
feed.appendChild(link)
|
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
|
# insert entry information
|
||||||
for mtime,file in dir[:items]:
|
for mtime,file in dir[:items]:
|
||||||
|
@ -17,3 +17,4 @@ bill_of_materials:
|
|||||||
images/feed-icon-10x10.png
|
images/feed-icon-10x10.png
|
||||||
images/opml.png
|
images/opml.png
|
||||||
images/foaf.png
|
images/foaf.png
|
||||||
|
images/venus.png
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<meta name="robots" content="noindex,nofollow" />
|
<meta name="robots" content="noindex,nofollow" />
|
||||||
<meta name="generator" content="{atom:generator}" />
|
<meta name="generator" content="{atom:generator}" />
|
||||||
<xsl:if test="atom:link[@rel='self']">
|
<xsl:if test="atom:link[@rel='self']">
|
||||||
<link rel="alternate" href="{atom:link[@rel='self']/@uri}"
|
<link rel="alternate" href="{atom:link[@rel='self']/@href}"
|
||||||
title="{atom:title}" type="{atom:link[@rel='self']/@type}" />
|
title="{atom:title}" type="{atom:link[@rel='self']/@type}" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<link rel="shortcut icon" href="/favicon.ico" />
|
<link rel="shortcut icon" href="/favicon.ico" />
|
||||||
@ -92,8 +92,8 @@
|
|||||||
<dt>Powered by:</dt>
|
<dt>Powered by:</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<a href="http://intertwingly.net/code/venus/">
|
<a href="http://intertwingly.net/code/venus/">
|
||||||
<img src="images/planet.png" width="80" height="15"
|
<img src="images/venus.png" width="80" height="15"
|
||||||
alt="Planet" border="0"/>
|
alt="Venus" border="0"/>
|
||||||
</a>
|
</a>
|
||||||
</dd>
|
</dd>
|
||||||
<dt>Export:</dt>
|
<dt>Export:</dt>
|
||||||
@ -212,7 +212,7 @@
|
|||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:attribute name="class">content</xsl:attribute>
|
<xsl:attribute name="class">content</xsl:attribute>
|
||||||
<xsl:copy-of select="@*|node()"/>
|
<xsl:apply-templates select="@*|node()"/>
|
||||||
</xsl:copy>
|
</xsl:copy>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
@ -227,4 +227,15 @@
|
|||||||
<xsl:copy-of select="."/>
|
<xsl:copy-of select="."/>
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- Feedburner detritus -->
|
||||||
|
<xsl:template match="xhtml:div[@class='feedflare']"/>
|
||||||
|
|
||||||
|
<!-- pass through everything else -->
|
||||||
|
<xsl:template match="@*|node()">
|
||||||
|
<xsl:copy>
|
||||||
|
<xsl:apply-templates select="@*|node()"/>
|
||||||
|
</xsl:copy>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
BIN
themes/common/images/venus.png
Normal file
BIN
themes/common/images/venus.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 570 B |
@ -20,3 +20,4 @@ bill_of_materials:
|
|||||||
images/feed-icon-10x10.png
|
images/feed-icon-10x10.png
|
||||||
images/opml.png
|
images/opml.png
|
||||||
images/foaf.png
|
images/foaf.png
|
||||||
|
images/venus.png
|
||||||
|
@ -54,8 +54,8 @@
|
|||||||
<dt>Powered by:</dt>
|
<dt>Powered by:</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<a href="http://intertwingly.net/code/venus/">
|
<a href="http://intertwingly.net/code/venus/">
|
||||||
<img src="images/planet.png" width="80" height="15"
|
<img src="images/venus.png" width="80" height="15"
|
||||||
alt="Planet" border="0"/>
|
alt="Venus" border="0"/>
|
||||||
</a>
|
</a>
|
||||||
</dd>
|
</dd>
|
||||||
<dt>Export:</dt>
|
<dt>Export:</dt>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user