Changeset 5907
- Timestamp:
- 08/16/07 14:14:09 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/management/base.py
r5903 r5907 66 66 raise NotImplementedError() 67 67 68 69 68 class AppCommand(BaseCommand): 70 69 args = '[appname ...]' … … 88 87 raise NotImplementedError() 89 88 90 91 89 class LabelCommand(BaseCommand): 92 90 args = '[label ...]' 93 91 label = 'label' 94 92 95 93 def handle(self, *labels, **options): 96 94 if not labels: … … 107 105 raise NotImplementedError() 108 106 109 110 107 class NoArgsCommand(BaseCommand): 111 108 args = '' … … 121 118 raise NotImplementedError() 122 119 123 124 def copy_helper(app_or_project, name, directory, other_name=''): 120 def copy_helper(style, app_or_project, name, directory, other_name=''): 125 121 import django 126 122 import os … … 161 157 shutil.copymode(path_old, path_new) 162 158 except OSError: 163 sys.stderr.write(s elf.style.NOTICE("Notice: Couldn't set permission bits on %s. You're probably using an uncommon filesystem setup. No problem.\n" % path_new))159 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)) django/trunk/django/core/management/commands/startapp.py
r5903 r5907 22 22 if app_name == project_name: 23 23 raise CommandError("You cannot create an app with the same name (%r) as your project." % app_name) 24 copy_helper( 'app', app_name, directory, parent_dir)24 copy_helper(self.style, 'app', app_name, directory, parent_dir) 25 25 26 26 class ProjectCommand(Command): django/trunk/django/core/management/commands/startproject.py
r5903 r5907 24 24 raise CommandError("%r conflicts with the name of an existing Python module and cannot be used as a project name. Please try another name." % project_name) 25 25 26 copy_helper( 'project', project_name, directory)26 copy_helper(self.style, 'project', project_name, directory) 27 27 28 28 # Create a random SECRET_KEY hash, and put it in the main settings.
