From 1c281c94f9af095f814b0096f2b56de9c81966d9 Mon Sep 17 00:00:00 2001 From: Yasin Date: Tue, 11 Mar 2014 17:34:03 +0100 Subject: [PATCH] Fix: manageuser: indentation --- portal/manageuserview.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/portal/manageuserview.py b/portal/manageuserview.py index 594c02a7..369d6e95 100644 --- a/portal/manageuserview.py +++ b/portal/manageuserview.py @@ -281,16 +281,16 @@ def user_process(request, **kwargs): if 'N/A' not in acc_auth_cred: auth_list = [] auth_cred = [] - for key, value in acc_auth_cred.iteritems(): - auth_list.append(key) - auth_cred.append(value) - # special case: download each slice credentials separately - for i in range(0, len(auth_list)): - if 'dl_'+auth_list[i] in request.POST: - auth_detail = "Authority: " + auth_list[i] +"\nAuthority Credentials: \n"+ auth_cred[i] - response = HttpResponse(auth_detail, content_type='text/plain') - response['Content-Disposition'] = 'attachment; filename="auth_credential.txt"' - return response + for key, value in acc_auth_cred.iteritems(): + auth_list.append(key) + auth_cred.append(value) + # special case: download each slice credentials separately + for i in range(0, len(auth_list)): + if 'dl_'+auth_list[i] in request.POST: + auth_detail = "Authority: " + auth_list[i] +"\nAuthority Credentials: \n"+ auth_cred[i] + response = HttpResponse(auth_detail, content_type='text/plain') + response['Content-Disposition'] = 'attachment; filename="auth_credential.txt"' + return response if 'submit_name' in request.POST: edited_first_name = request.POST['fname'] -- 2.43.0