changed 'course code lib' references to 'python lib' to maintain consistency
This commit is contained in:
@@ -22,7 +22,7 @@ from dashboard.models import CourseImportLog
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
DEFAULT_GIT_REPO_DIR = '/edx/var/app/edxapp/course_repos'
|
||||
DEFAULT_COURSE_CODE_LIB_FILENAME = 'python_lib.zip'
|
||||
DEFAULT_PYTHON_LIB_FILENAME = 'python_lib.zip'
|
||||
|
||||
|
||||
class GitImportError(Exception):
|
||||
@@ -185,8 +185,8 @@ def add_repo(repo, rdir_in, branch=None):
|
||||
|
||||
git_repo_dir = getattr(settings, 'GIT_REPO_DIR', DEFAULT_GIT_REPO_DIR)
|
||||
git_import_static = getattr(settings, 'GIT_IMPORT_STATIC', True)
|
||||
git_import_code_lib = getattr(settings, 'GIT_IMPORT_CODE_LIB', True)
|
||||
course_code_lib_filename = getattr(settings, 'COURSE_CODE_LIB_FILENAME', DEFAULT_COURSE_CODE_LIB_FILENAME)
|
||||
git_import_python_lib = getattr(settings, 'GIT_IMPORT_PYTHON_LIB', True)
|
||||
python_lib_filename = getattr(settings, 'PYTHON_LIB_FILENAME', DEFAULT_PYTHON_LIB_FILENAME)
|
||||
|
||||
# Set defaults even if it isn't defined in settings
|
||||
mongo_db = {
|
||||
@@ -276,8 +276,8 @@ def add_repo(repo, rdir_in, branch=None):
|
||||
try:
|
||||
management.call_command(
|
||||
'import', git_repo_dir, rdir,
|
||||
nostatic=not git_import_static, nocodelib=not git_import_code_lib,
|
||||
code_lib_filename=course_code_lib_filename
|
||||
nostatic=not git_import_static, nopythonlib=not git_import_python_lib,
|
||||
python_lib_filename=python_lib_filename
|
||||
)
|
||||
except CommandError:
|
||||
raise GitImportErrorXmlImportFailed()
|
||||
|
||||
@@ -371,8 +371,8 @@ BADGR_TIMEOUT = ENV_TOKENS.get('BADGR_TIMEOUT', BADGR_TIMEOUT)
|
||||
# git repo loading environment
|
||||
GIT_REPO_DIR = ENV_TOKENS.get('GIT_REPO_DIR', '/edx/var/edxapp/course_repos')
|
||||
GIT_IMPORT_STATIC = ENV_TOKENS.get('GIT_IMPORT_STATIC', True)
|
||||
GIT_IMPORT_CODE_LIB = ENV_TOKENS.get('GIT_IMPORT_CODE_LIB', True)
|
||||
COURSE_CODE_LIB_FILENAME = ENV_TOKENS.get('COURSE_CODE_LIB_FILENAME', 'python_lib.zip')
|
||||
GIT_IMPORT_PYTHON_LIB = ENV_TOKENS.get('GIT_IMPORT_PYTHON_LIB', True)
|
||||
PYTHON_LIB_FILENAME = ENV_TOKENS.get('PYTHON_LIB_FILENAME', 'python_lib.zip')
|
||||
|
||||
for name, value in ENV_TOKENS.get("CODE_JAIL", {}).items():
|
||||
oldvalue = CODE_JAIL.get(name)
|
||||
|
||||
Reference in New Issue
Block a user