X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Factions.py;h=5ed2056bcb3ab123903c410c541239cc10dd8296;hb=3115db4d25f14d84dcc248bdc470aef49df2aba8;hp=0e7c4c01e5dfc92149e27e9ad06324f801f9e2e4;hpb=197e6f2843398a696d18f4eb0e13b7fa52d8fece;p=unfold.git diff --git a/portal/actions.py b/portal/actions.py index 0e7c4c01..5ed2056b 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -674,19 +674,17 @@ def portal_validate_request(wsgi_request, request_ids): elif request['type'] == 'authority': #hrn = "%s.%s" % (request['authority_hrn'], request['site_authority']) hrn = request['site_authority'] + name = request['site_name'] # 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 = { - 'authority_hrn' : hrn, - #'authority_urn' : urn, - #'type' : request['type'], - #'pi' : None, - #'enabled' : True + 'authority_hrn' : hrn, + 'name' : name } - logger.info("ADD Authority") + #logger.info("ADD Authority") sfa_add_authority(wsgi_request, sfa_authority_params) request_status['SFA authority'] = {'status': True } a = PendingAuthority.objects.get(id=request['id'])