forked from expo/troggle
test
This commit is contained in:
parent
5ac6bfd49a
commit
84693b6524
@ -331,7 +331,7 @@ def editexpopage(request, path):
|
|||||||
# GIT see also core/models/cave.py writetrogglefile()
|
# GIT see also core/models/cave.py writetrogglefile()
|
||||||
# GIT see also core/views/uploads.py dwgupload()
|
# GIT see also core/views/uploads.py dwgupload()
|
||||||
try:
|
try:
|
||||||
with open(filepath.encode(sysdefaultencoding), "w") as f:
|
with open(os.path.normpath(filepath).encode(sysdefaultencoding), "w") as f:
|
||||||
print(f'WRITING{cwd}---{filename} ')
|
print(f'WRITING{cwd}---{filename} ')
|
||||||
# as the wsgi process www-data, we have group write-access but are not owner, so cannot chmod.
|
# as the wsgi process www-data, we have group write-access but are not owner, so cannot chmod.
|
||||||
# os.chmod(filepath, 0o664) # set file permissions to rw-rw-r--
|
# os.chmod(filepath, 0o664) # set file permissions to rw-rw-r--
|
||||||
|
Loading…
x
Reference in New Issue
Block a user