Edited docstring changes from [6480] -- moved the intense parameter definitions into comments
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6767 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
71dd90b25d
commit
14eaaafef8
|
@ -172,14 +172,13 @@ def copy_helper(style, app_or_project, name, directory, other_name=''):
|
||||||
"""
|
"""
|
||||||
Copies either a Django application layout template or a Django project
|
Copies either a Django application layout template or a Django project
|
||||||
layout template into the specified directory.
|
layout template into the specified directory.
|
||||||
|
|
||||||
* style - A color style object (see django.core.management.color).
|
|
||||||
* app_or_project - The string 'app' or 'project'.
|
|
||||||
* name - The name of the application or project.
|
|
||||||
* directory - The directory to copy the layout template to.
|
|
||||||
* other_name - When copying an application layout, this should be the name
|
|
||||||
of the project.
|
|
||||||
"""
|
"""
|
||||||
|
# style -- A color style object (see django.core.management.color).
|
||||||
|
# app_or_project -- The string 'app' or 'project'.
|
||||||
|
# name -- The name of the application or project.
|
||||||
|
# directory -- The directory to which the layout template should be copied.
|
||||||
|
# other_name -- When copying an application layout, this should be the name
|
||||||
|
# of the project.
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
other = {'project': 'app', 'app': 'project'}[app_or_project]
|
other = {'project': 'app', 'app': 'project'}[app_or_project]
|
||||||
|
|
Loading…
Reference in New Issue