Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76799 - website/public_html/beta/site-tools/boost_site
From: dnljms_at_[hidden]
Date: 2012-01-30 18:48:58


Author: danieljames
Date: 2012-01-30 18:48:57 EST (Mon, 30 Jan 2012)
New Revision: 76799
URL: http://svn.boost.org/trac/boost/changeset/76799

Log:
Website: Tweak the rss feed attributes.
Text files modified:
   website/public_html/beta/site-tools/boost_site/settings.py | 4 ++++
   website/public_html/beta/site-tools/boost_site/site_tools.py | 4 ++--
   2 files changed, 6 insertions(+), 2 deletions(-)

Modified: website/public_html/beta/site-tools/boost_site/settings.py
==============================================================================
--- website/public_html/beta/site-tools/boost_site/settings.py (original)
+++ website/public_html/beta/site-tools/boost_site/settings.py 2012-01-30 18:48:57 EST (Mon, 30 Jan 2012)
@@ -45,20 +45,24 @@
     # glob [ '|' flag ]
     'feeds' : {
         'generated/downloads.rss' : {
+ 'link' : 'users/download/',
             'title': 'Boost Downloads',
             'matches': ['feed/history/*.qbk|released', 'feed/downloads/*.qbk'],
             'count': 3
         },
         'generated/history.rss' : {
+ 'link' : 'users/history/',
             'title': 'Boost History',
             'matches': ['feed/history/*.qbk|released']
         },
         'generated/news.rss' : {
+ 'link' : 'users/news/',
             'title': 'Boost News',
             'matches': ['feed/news/*.qbk', 'feed/history/*.qbk|released'],
             'count': 5
         },
         'generated/dev.rss' : {
+ 'link' : '',
             'title': 'Release notes for work in progress boost',
             'matches': ['feed/history/*.qbk'],
             'count': 5

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 2012-01-30 18:48:57 EST (Mon, 30 Jan 2012)
@@ -112,7 +112,7 @@
     rss = xml.dom.minidom.parseString('''<?xml version="1.0" encoding="UTF-8"?>
 <rss version="2.0" xmlns:boostbook="urn:boost.org:boostbook">
   <channel>
- <generator>BoostBook2RSS</generator>
+ <generator>Boost Website Site Tools</generator>
     <title>%(title)s</title>
     <link>%(link)s</link>
     <description>%(description)s</description>
@@ -122,7 +122,7 @@
 </rss>
 ''' % {
     'title' : details['title'].encode('utf-8'),
- 'link' : "http://www.boost.org/" + feed_file,
+ 'link' : "http://www.boost.org/" + details['link'],
     'description' : '',
     'language' : 'en-us',
     'copyright' : 'Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)'


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