Changeset 725c55d for fedd/federation/emulab_access.py
- Timestamp:
- Nov 29, 2010 6:13:12 PM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 027b87b
- Parents:
- c573278
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_access.py
rc573278 r725c55d 247 247 str = str.strip() 248 248 if str.startswith('(') and str.endswith(')') and str.count(',') == 1: 249 proj, user = str.split(',') 250 return ( proj.strip(), user.strip(), user.strip()) 249 # The slice takes the parens off the string. 250 proj, user = str[1:-1].split(',') 251 return (access_project(proj.strip(), []), 252 user.strip(), user.strip()) 251 253 else: 252 254 raise self.parse_error( … … 501 503 ap = None 502 504 505 print "%s %s %s" % (found, dyn, owners) 506 503 507 # if this includes a project export request and the exported 504 508 # project is not the access project, access denied. … … 531 535 for o in owners: 532 536 self.auth.set_attribute(o, allocID) 537 print "Set delete rights on %s for %s" % (o, allocID) 533 538 self.auth.save() 534 539 try: … … 585 590 raise service_error(service_error.req, "Badly formed request") 586 591 587 self.log.debug("[access] deallocation requested for %s", aid) 592 self.log.debug("[access] deallocation requested for %s by %s" % \ 593 (aid, fid)) 588 594 if not self.auth.check_attribute(fid, auth_attr): 589 595 self.log.debug("[access] deallocation denied for %s", aid)
Note: See TracChangeset
for help on using the changeset viewer.