Django

Code

Changeset 3941

Show
Ignore:
Timestamp:
10/26/06 21:19:32 (2 years ago)
Author:
adrian
Message:

Fixed #2956 -- Made 'django-admin.py startproject' tolerant of filesystem arrangements that cannot accept file-permission changes. Thanks for the patch, masonsimon+django@gmail.com

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/AUTHORS

    r3938 r3941  
    113113    mattmcc 
    114114    Martin Maney <http://www.chipy.org/Martin_Maney> 
     115    masonsimon+django@gmail.com 
    115116    Manuzhai 
    116117    Petar Marić 
  • django/trunk/django/core/management.py

    r3932 r3941  
    3333style.ERROR = termcolors.make_style(fg='red', opts=('bold',)) 
    3434style.ERROR_OUTPUT = termcolors.make_style(fg='red', opts=('bold',)) 
     35style.NOTICE = termcolors.make_style(fg='red') 
    3536style.SQL_FIELD = termcolors.make_style(fg='green', opts=('bold',)) 
    3637style.SQL_COLTYPE = termcolors.make_style(fg='green') 
     
    697698            fp_old.close() 
    698699            fp_new.close() 
    699             shutil.copymode(path_old, path_new) 
     700            try: 
     701                shutil.copymode(path_old, path_new) 
     702            except OSError: 
     703                sys.stderr.write(style.NOTICE("Notice: Couldn't set permission bits on %s. You're probably using an uncommon filesystem setup. No problem.\n" % path_new)) 
    700704 
    701705def startproject(project_name, directory):