Changeset e5a8b44


Ignore:
Timestamp:
Aug 1, 2008 2:58:53 PM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
4a6f04b
Parents:
7aec37d
Message:

split out internal interfaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_proj.py

    r7aec37d re5a8b44  
    303303        project = None
    304304        user = None
     305        rp = fedd_proj.access_project()
     306        ru = None
     307
    305308
    306309        principal_type = self.fedid_category.get(fid, self.fedid_default)
     
    347350        if found[0].name == "<same>":
    348351            if project != None:
    349                 found[0].name = project
     352                rp.name = project
    350353            else :
    351354                raise service_error(\
     
    353356                        "Project matched <same> when no project given")
    354357        elif found[0].name == "<dynamic>":
    355             found[0].name = None
     358            rp.name = None
    356359            dyn_proj = True
     360        else:
     361            rp.name = found[0].name
     362        rp.node_types = found[0].node_types;
    357363
    358364        if found[1] == "<same>":
    359365            if user_match == "<any>":
    360                 if user != None: found = (found[0], user[0])
     366                if user != None: ru = user[0]
    361367                else: raise service_error(\
    362368                        service_error.server_config,
    363369                        "Matched <same> on anonymous request")
    364370            else:
    365                 found = (found[0], user_match)
     371                ru = user_match
    366372        elif found[1] == "<dynamic>":
    367             found = (found[0], None)
     373            ru = None
    368374            dyn_user = True
    369375       
    370         return found, (dyn_user, dyn_proj)
     376        return (rp, ru), (dyn_user, dyn_proj)
    371377
    372378    def build_response(self, alloc_id, ap):
Note: See TracChangeset for help on using the changeset viewer.