|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73080 - website/public_html/beta/site-tools/boost_site
From: dnljms_at_[hidden]
Date: 2011-07-13 18:17:07
Author: danieljames
Date: 2011-07-13 18:17:06 EDT (Wed, 13 Jul 2011)
New Revision: 73080
URL: http://svn.boost.org/trac/boost/changeset/73080
Log:
Website: Add guids to new feed entries.
Text files modified:
website/public_html/beta/site-tools/boost_site/site_tools.py | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
Modified: website/public_html/beta/site-tools/boost_site/site_tools.py
==============================================================================
--- website/public_html/beta/site-tools/boost_site/site_tools.py (original)
+++ website/public_html/beta/site-tools/boost_site/site_tools.py 2011-07-13 18:17:06 EDT (Wed, 13 Jul 2011)
@@ -120,11 +120,14 @@
item = rss_feed.createElement('item')
- title = xml.dom.minidom.parseString('<title>%s</title>' % page.title_xml)
- item.appendChild(rss_feed.importNode(title.documentElement, True))
+ node = xml.dom.minidom.parseString('<title>%s</title>' % page.title_xml)
+ item.appendChild(rss_feed.importNode(node.documentElement, True))
- title = xml.dom.minidom.parseString('<link>%s</link>' % page_link)
- item.appendChild(rss_feed.importNode(title.documentElement, True))
+ node = xml.dom.minidom.parseString('<link>%s</link>' % page_link)
+ item.appendChild(rss_feed.importNode(node.documentElement, True))
+
+ node = xml.dom.minidom.parseString('<guid>%s</guid>' % page_link)
+ item.appendChild(rss_feed.importNode(node.documentElement, True))
# TODO: Convert date format?
node = rss_feed.createElement('pubDate')
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk