Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#1651 closed defect (fixed)

[patch] django-admin.py should copy permissions of project_template files

Reported by: pb@… Owned by: Adrian Holovaty
Component: Core (Management commands) Version: magic-removal
Severity: minor Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The startproject command doesn't copy file permissions, so manage.py loses its executable bits. Attached patch uses shutil.copymode() to remedy this.

Attachments (1)

copymode.patch (1.3 KB ) - added by pb@… 18 years ago.
patch

Download all attachments as: .zip

Change History (3)

by pb@…, 18 years ago

Attachment: copymode.patch added

patch

comment:1 by pb@…, 18 years ago

Actually this patch covers both startproject and startapp, even though app_template files (currently) all have the usual -rw-r--r-- permissions.

comment:2 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [2709]) magic-removal: Fixed #1651 -- 'startproject' and 'startapp' now copy permission bits. Thanks, pb

Note: See TracTickets for help on using tickets.
Back to Top