updated django.edit so taht if coverage is not being used for this project/branch, it won't throw an error looking for it
This commit is contained in:
parent
9c56c31e61
commit
9b73b9653d
1 changed files with 12 additions and 10 deletions
|
|
@ -868,21 +868,11 @@ def edit(param='help'):
|
||||||
django_path=django_path,
|
django_path=django_path,
|
||||||
project_branch=project_branch)
|
project_branch=project_branch)
|
||||||
|
|
||||||
#
|
|
||||||
# set .coveragerc path and filename
|
|
||||||
|
|
||||||
if param == 'coverage':
|
|
||||||
coverage_test()
|
|
||||||
|
|
||||||
file_debug_handler = configuration.logging.django.handlers.file_debug
|
file_debug_handler = configuration.logging.django.handlers.file_debug
|
||||||
|
|
||||||
# locations = ['coverage', 'gunicorn', 'gunicorn_link', 'gunicorn_build',
|
# locations = ['coverage', 'gunicorn', 'gunicorn_link', 'gunicorn_build',
|
||||||
# 'settings', 'local']
|
# 'settings', 'local']
|
||||||
locations = {
|
locations = {
|
||||||
'coverage': {
|
|
||||||
'path': configuration.coverage.config,
|
|
||||||
'desc': 'coveragerc config file',
|
|
||||||
},
|
|
||||||
|
|
||||||
'gunicorn': {
|
'gunicorn': {
|
||||||
'path': link_path,
|
'path': link_path,
|
||||||
|
|
@ -932,6 +922,18 @@ def edit(param='help'):
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# set .coveragerc path and filename
|
||||||
|
# and add a coverage entry to locations
|
||||||
|
|
||||||
|
if param == 'coverage':
|
||||||
|
coverage_test()
|
||||||
|
|
||||||
|
locations['coverage'] = {
|
||||||
|
'path': configuration.coverage.config,
|
||||||
|
'desc': 'coveragerc config file',
|
||||||
|
}
|
||||||
|
|
||||||
if param in locations.keys():
|
if param in locations.keys():
|
||||||
remote_path = locations[param]['path']
|
remote_path = locations[param]['path']
|
||||||
maintenance_edit(remote_path=remote_path)
|
maintenance_edit(remote_path=remote_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue