Files @ a0dbdb8637f7
Branch filter:

Location: website/compile-all.py

bkuhn
Absolute URL back to /blog for year.

<tmarble> if you go to http://aspen.sfconservancy.org/blog/
<tmarble> then you click on 2014 in leftnav [15:46]
<tmarble> you get the new leftnav
<tmarble> BUT the URLS are borked
<tmarble> http://aspen.sfconservancy.org/blog/2014/2015/
<tmarble> http://aspen.sfconservancy.org/blog/2014/2014/
<tmarble> etc.
#!/usr/bin/python

import compileall
import os
#compileall.compile_dir("www", force=1)
#

def compileDir(arg, directory, names):
    compileall.compile_dir(directory, force=1)

os.path.walk("www", compileDir, "")

os.system("find www -type d -exec chmod gu+rx {} \;")
os.system("find www -type f -exec chmod gu+r {} \;")
os.system("find www -type d -exec chmod o+x {} \;")
os.system("find www/conservancy/static -type d -exec chmod o+rx {} \;")
os.system("find www/conservancy/static  -exec chmod o+r {} \;")
os.system("find www -exec chgrp www-data {} \;")
os.system("find www -exec chmod go-w {} \;")