Files @ f3b930579f1b
Branch filter:

Location: website/compile-all.py

bkuhn
Automatically generate fundraiser percentage text.

Using this span, we can update the number in the fundraising percentage
text automatically. The downside is that non-javascript browsers will
not receive a fundraising percentage, but the upside is that fewer
things need to be calculated by hand, and now only the amount raised so
far needs updated.
#!/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 {} \;")