From b479a2cbcf0f935665e4455a3bba7c634d2e67cf Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Tue, 3 Apr 2007 01:34:49 +0000 Subject: [PATCH] add some permissions explanantion --- python_scrapers/generateCGIScripts.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python_scrapers/generateCGIScripts.py b/python_scrapers/generateCGIScripts.py index 0ccd95e..3b79521 100755 --- a/python_scrapers/generateCGIScripts.py +++ b/python_scrapers/generateCGIScripts.py @@ -39,6 +39,13 @@ for file_dict in other_files_csv_reader: print file_dict filename = file_dict["filename"] copyfile(filename, cgi_dir+filename) + + # the idea here is to have filename and permissions + # in the csv file. + # Until version 2.6 of python, there is no easy way + # to convert a string to an octal, so I am using + # integers to represent permissions... + # see README for details. chmod(cgi_dir+filename, int(file_dict["permissions"])) # write a README to warn people not to svn add stuff to CGI directory