Updated Service Directory url and cleaned some comments
[unfold.git] / portal / manageuserview.py
index 594c02a..7687d34 100644 (file)
@@ -10,7 +10,7 @@ from ui.topmenu                         import topmenu_items_live, the_user
 from django.http                        import HttpResponse, HttpResponseRedirect
 from django.contrib                     import messages
 from django.contrib.auth.decorators     import login_required
-from theme import ThemeView
+from myslice.theme import ThemeView
 #
 import json, os, re, itertools
 
@@ -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']