From 9dbf5a34dc8cfa33521dc3d20d1d17f731e10981 Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Tue, 3 Apr 2007 01:32:05 +0000 Subject: [PATCH] Use integers for the permissions in OtherFilesToCopy.csv Explain this horror in the README --- trunk/python_scrapers/OtherFilesToCopy.csv | 8 ++++---- trunk/python_scrapers/README | 11 +++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/trunk/python_scrapers/OtherFilesToCopy.csv b/trunk/python_scrapers/OtherFilesToCopy.csv index ffda104..ee81dd1 100644 --- a/trunk/python_scrapers/OtherFilesToCopy.csv +++ b/trunk/python_scrapers/OtherFilesToCopy.csv @@ -1,5 +1,5 @@ "filename", "permissions" -"PublicAccess.py", 0644 -"PlanningUtils.py", 0644 -"SouthOxfordshireParser.py", 0644 -"SouthOxfordshire.cgi", 0755 +"PublicAccess.py", "420" +"PlanningUtils.py", "420" +"SouthOxfordshireParser.py", "420" +"SouthOxfordshire.cgi", "493" diff --git a/trunk/python_scrapers/README b/trunk/python_scrapers/README index ed75f00..477fdbc 100644 --- a/trunk/python_scrapers/README +++ b/trunk/python_scrapers/README @@ -8,3 +8,14 @@ generates new cgi files in the CGI directory, copies in some other files that are needed, and commits all these changes to svn. +There is currently something very nasty in the permissions +column in the file OtherFilesToCopy.csv + +Until version 2.6 of python, there appears to be no convenient +way to convert a string like 0755 into an octal. I am therefore +using integers to specify permissions of the copied files... + +420 is 0644 +493 is 0755 + +This is horrid, and must change in the future... \ No newline at end of file