Revision 6debe235
b/snf-astakos-app/astakos/im/functions.py | ||
---|---|---|
1110 | 1110 |
project = get_project_for_update(project_id) |
1111 | 1111 |
project_check_allowed(project, request_user, level=ADMIN_LEVEL) |
1112 | 1112 |
checkAlive(project) |
1113 |
if project.is_base: |
|
1114 |
m = _(astakos_messages.BASE_NO_TERMINATE) % project.uuid |
|
1115 |
raise ProjectConflict(m) |
|
1113 | 1116 |
|
1114 | 1117 |
project.terminate(actor=request_user, reason=reason) |
1115 | 1118 |
quotas.qh_sync_project(project) |
b/snf-astakos-app/astakos/im/messages.py | ||
---|---|---|
228 | 228 |
NOT_ALIVE_PROJECT = 'Project %s is not alive.' |
229 | 229 |
NOT_SUSPENDED_PROJECT = 'Project %s is not suspended.' |
230 | 230 |
NOT_TERMINATED_PROJECT = 'Project %s is not terminated.' |
231 |
BASE_NO_TERMINATE = "Cannot terminate: %s is a base project." |
|
231 | 232 |
NOT_ALLOWED = 'You do not have the permissions to perform this action.' |
232 | 233 |
MEMBER_NUMBER_LIMIT_REACHED = ( |
233 | 234 |
'You have reached the maximum number of members for this Project.') |
Also available in: Unified diff