description = 'Planet PostgreSQL',
generator = 'Planet PostgreSQL',
lastBuildDate = datetime.datetime.utcnow())
+ rssshort = PyRSS2Gen.RSS2(
+ title = 'Planet PostgreSQL (short)',
+ link = 'http://planet.postgresql.org',
+ description = 'Planet PostgreSQL (short)',
+ generator = 'Planet PostgreSQL',
+ lastBuildDate = datetime.datetime.utcnow())
psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)
self.db.set_client_encoding('UTF8')
for post in c.fetchall():
desc = self.TruncateAndCleanDescription(post[4])
rss.items.append(PyRSS2Gen.RSSItem(
+ title=post[5] + ': ' + post[3],
+ link=post[1],
+ guid=PyRSS2Gen.Guid(post[0],post[7]),
+ pubDate=post[2],
+ description=post[4]))
+ rssshort.items.append(PyRSS2Gen.RSSItem(
title=post[5] + ': ' + post[3],
link=post[1],
guid=PyRSS2Gen.Guid(post[0],post[7]),
self.feeds.append(PlanetFeed(feed[0], feed[1], feed[2]))
rss.write_xml(open("www/rss20.xml","w"), encoding='utf-8')
+ rssshort.write_xml(open("www/rss20_short.xml","w"), encoding='utf-8')
self.WriteFromTemplate('index.tmpl', 'www/index.html')
for staticfile in self.staticfiles:
</ul>
<div class="planetRightTitle">Feeds</div>
<ul>
- <li><a href="rss20.xml"><img src="img/feed-icon-14x14.png" alt="rss" /></a> <a href="rss20.xml">Planet PostgreSQL</a></li>
+ <li><a href="rss20.xml"><img src="img/feed-icon-14x14.png" alt="rss" /></a> <a href="rss20.xml">All feeds (full entries)</a></li>
+ <li><a href="rss20_short.xml"><img src="img/feed-icon-14x14.png" alt="rss" /></a> <a href="rss20_short.xml">All feeds (short entries)</a></li>
</ul>
<div class="planetRightTitle">Planet</div>
<p><a href="policy.html">Policy</a> for being listed on Planet PostgreSQL</p>