sliceusers list added
[myslice.git] / portal / registrationview.py
index 42d10e9..58567dd 100644 (file)
@@ -37,7 +37,7 @@ class RegistrationView (FreeAccessView, ThemeView):
         errors = []
 
         # Using cache manifold-tables to get the list of authorities faster
-        authorities_query = Query.get('authority').select('name', 'authority_hrn')
+        authorities_query = Query.get('authority').select('authority_hrn')
         
         #onelab_enabled_query = Query.get('local:platform').filter_by('platform', '==', 'ple').filter_by('disabled', '==', 'False')
         #onelab_enabled = not not execute_admin_query(request, onelab_enabled_query)
@@ -175,12 +175,9 @@ class RegistrationView (FreeAccessView, ThemeView):
                     'user_hrn'      : user_hrn,
                     'public_key'    : public_key,
                     }
+                
                 recipients = authority_get_pi_emails(request,reg_auth)
                 
-                # We don't need to send this email to user.
-                # it's for the PI only
-                #if ctx['cc_myself']:
-                #    recipients.append(ctx['email'])
 
                 msg = render_to_string('user_request_email.txt', ctx)
                 send_mail("Onelab New User request for %s submitted"%reg_email, msg, 'support@myslice.info', recipients)