Ignore:
Timestamp:
Nov 29, 2010 6:13:12 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
027b87b
Parents:
c573278
Message:

Checkpoint - successful swap in and out

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    rc573278 r725c55d  
    247247        str = str.strip()
    248248        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())
    251253        else:
    252254            raise self.parse_error(
     
    501503        ap = None
    502504
     505        print "%s %s %s" % (found, dyn, owners)
     506
    503507        # if this includes a project export request and the exported
    504508        # project is not the access project, access denied.
     
    531535        for o in owners:
    532536            self.auth.set_attribute(o, allocID)
     537            print "Set delete rights on %s for %s" % (o, allocID)
    533538        self.auth.save()
    534539        try:
     
    585590            raise service_error(service_error.req, "Badly formed request")
    586591
    587         self.log.debug("[access] deallocation requested for %s", aid)
     592        self.log.debug("[access] deallocation requested for %s by %s" % \
     593                (aid, fid))
    588594        if not self.auth.check_attribute(fid, auth_attr):
    589595            self.log.debug("[access] deallocation denied for %s", aid)
Note: See TracChangeset for help on using the changeset viewer.