Changeset 8573


Ignore:
Timestamp:
31 May 2012, 14:16:51 (13 years ago)
Author:
Henrik Bettermann
Message:

Perform chmod after uplpoding files into datacenter, creating media files or creating pending files in datacenter.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r8529 r8573  
    830830                                  self.getNormalizedFileName(filename))
    831831            open(target, 'wb').write(uploadfile.read())
     832            os.chmod(target, 0664)
    832833            logger = self.context.logger
    833834            logger.info('%s: Uploaded file %s' % (
  • main/waeup.kofa/trunk/src/waeup/kofa/imagestorage.py

    r7811 r8573  
    441441            os.makedirs(dirname, 0755)
    442442        open(path, 'wb').write(f.read())
     443        s.chmod(path, 0664)
    443444        return file_obj
    444445
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py

    r8540 r8573  
    292292        failed_writer = csv.DictWriter(open(failed_path, 'wb'),
    293293                                       failed_headers)
     294        os.chmod(failed_path, 0664)
    294295        failed_writer.writerow(dict([(x,x) for x in failed_headers]))
    295296
Note: See TracChangeset for help on using the changeset viewer.