X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Factions.py;h=3a5fcbc3b5d77eed8d6517b2151d8f565a5f69d4;hb=d5f4c4f7fb3b131fd5f939f3a6b216c6fabbc05c;hp=e21812608a2ea7fcb7c7dcd46a53e6df78d0b411;hpb=43da604014833e14325c327a0ea60c04bf112526;p=myslice.git diff --git a/portal/actions.py b/portal/actions.py index e2181260..3a5fcbc3 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -252,7 +252,7 @@ def get_request_by_id(ids): def get_requests(authority_hrns=None): print "get_request_by_authority auth_hrns = ", authority_hrns if not authority_hrns: - ## get those pending users who have validated their emails + ## get those pending users who have confirmed their emails pending_users = PendingUser.objects.filter(status__iexact = 'True') pending_slices = PendingSlice.objects.all() pending_authorities = PendingAuthority.objects.all() @@ -321,13 +321,14 @@ def portal_validate_request(wsgi_request, request_ids): # XXX tmp sfa dependency from sfa.util.xrn import Xrn urn = Xrn(hrn, request['type']).get_urn() - + + # Only hrn is required for Manifold Query sfa_authority_params = { - 'hrn' : hrn, - 'urn' : urn, - 'type' : request['type'], + 'authority_hrn' : hrn, + #'authority_urn' : urn, + #'type' : request['type'], #'pi' : None, - 'enabled' : True + #'enabled' : True } print "ADD Authority" sfa_add_authority(wsgi_request, sfa_authority_params) @@ -538,7 +539,7 @@ def create_pending_user(wsgi_request, request, user_detail): public_key = request['public_key'], private_key = request['private_key'], user_hrn = request['user_hrn'], - pi = '', # XXX Why not None ? + pi = request['pi'], email_hash = request['email_hash'], status = 'False', )