Files @ 888028f64b95
Branch filter:

Location: website/compile-all.py

bkuhn
Jeremy emailed me his bio to use for the Conservancy website:
To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
Cc: jra@samba.org
Message-ID: <20101005004226.GA27337@samba1>
Date: Mon, 4 Oct 2010 17:42:26 -0700
From: Jeremy Allison <jra@samba.org>
Subject: Re: bio for Conservancy website
#!/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 {} \;")