Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76243 - in website/public_html/beta: generated/state site-tools/boost_site site-tools/state
From: dnljms_at_[hidden]
Date: 2011-12-31 06:11:29


Author: danieljames
Date: 2011-12-31 06:11:28 EST (Sat, 31 Dec 2011)
New Revision: 76243
URL: http://svn.boost.org/trac/boost/changeset/76243

Log:
Website: Move the state into 'generated'.
Added:
   website/public_html/beta/generated/state/
      - copied from r76241, /website/public_html/beta/site-tools/state/
   website/public_html/beta/generated/state/feed-pages.txt
      - copied unchanged from r76242, /website/public_html/beta/site-tools/state/feed-pages.txt
Removed:
   website/public_html/beta/site-tools/state/
Text files modified:
   website/public_html/beta/site-tools/boost_site/site_tools.py | 2 +-
   website/public_html/beta/site-tools/boost_site/upgrade.py | 6 +++---
   2 files changed, 4 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-12-31 06:11:28 EST (Sat, 31 Dec 2011)
@@ -16,7 +16,7 @@
     boost_site.upgrade.upgrade()
 
 def load_pages():
- return boost_site.pages.Pages('site-tools/state/feed-pages.txt')
+ return boost_site.pages.Pages('generated/state/feed-pages.txt')
 
 def refresh_quickbook():
     update_quickbook(True)

Modified: website/public_html/beta/site-tools/boost_site/upgrade.py
==============================================================================
--- website/public_html/beta/site-tools/boost_site/upgrade.py (original)
+++ website/public_html/beta/site-tools/boost_site/upgrade.py 2011-12-31 06:11:28 EST (Sat, 31 Dec 2011)
@@ -30,7 +30,7 @@
     pages.save()
 
 def upgrade3():
- pages_raw = boost_site.state.load('site-tools/state/feed-pages.txt')
+ pages_raw = boost_site.state.load('generated/state/feed-pages.txt')
     for page in pages_raw:
         page_details = pages_raw[page]
         flags = page_details['flags']
@@ -50,7 +50,7 @@
         if len(flags) != 0:
             raise Exception("Unexpected flags: " + str(flags))
         del page_details['flags']
- boost_site.state.save(pages_raw, 'site-tools/state/feed-pages.txt')
+ boost_site.state.save(pages_raw, 'generated/state/feed-pages.txt')
 
 versions = [
         upgrade1,
@@ -76,7 +76,7 @@
 
 class Version:
     def __init__(self):
- self.filename = 'site-tools/state/version.txt'
+ self.filename = 'generated/state/version.txt'
         self.load()
 
     def load(self):


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