浏览代码

Use integers for the permissions in OtherFilesToCopy.csv

Explain this horror in the README
master
duncan.parkes 17 年前
父节点
当前提交
7062eed92a
共有 2 个文件被更改,包括 15 次插入4 次删除
  1. +4
    -4
      python_scrapers/OtherFilesToCopy.csv
  2. +11
    -0
      python_scrapers/README

+ 4
- 4
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"

+ 11
- 0
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...

正在加载...
取消
保存