Changeset ee950c2 for fedd/federation/access.py
- Timestamp:
- Jan 10, 2012 5:28:15 PM (12 years ago)
- Branches:
- compt_changes, info-ops, master
- Children:
- f77a256
- Parents:
- d2e86f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/access.py
rd2e86f6 ree950c2 15 15 16 16 from util import * 17 from allocate_project import allocate_project_local, allocate_project_remote18 17 from fedid import fedid, generate_fedid 19 18 from authorizer import authorizer … … 305 304 if access_ok: 306 305 self.log.debug("Access succeeded for %s %s" % (attr.attr, fid)) 307 # XXX: needs to deal with dynamics 308 return copy.copy(attr.value), (False, False, False), \ 309 [ fid ], proof 306 return copy.copy(attr.value), [ fid ], proof 310 307 else: 311 308 fail_proofs.append(proof) … … 451 448 return (exp, state) 452 449 453 def build_access_response(self, alloc_id, ap, services, proof):450 def build_access_response(self, alloc_id, pname, services, proof): 454 451 """ 455 452 Create the SOAP response. … … 467 464 'fedAttr': [ 468 465 { 'attribute': 'domain', 'value': self.domain } , 469 { 'attribute': 'project', 'value':470 ap['project'].get('name', {}).get('localname', "???") },471 466 ] 472 467 } 473 468 469 if pname: 470 msg['fedAttr'].append({ 'attribute': 'project', 'value': pname }) 474 471 if self.dragon_endpoint: 475 472 msg['fedAttr'].append({'attribute': 'dragon',
Note: See TracChangeset
for help on using the changeset viewer.