Ignore:
Timestamp:
Nov 30, 2008 9:19:33 AM (15 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:
7454054
Parents:
f0dc2ca
Message:

Clean up some names that start with fedd_ that are ugly with the new package
structure. A couple other bugs cleaned up, too.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • fedd/fedd/access.py

    rf0dc2ca rec4fb42  
    1111
    1212from fedd_services import *
    13 from fedd_util import *
    14 from fedd_allocate_project import *
    15 from fedd_access_project import access_project
     13from util import *
     14from allocate_project import allocate_project_local, allocate_project_remote
     15from access_project import access_project
    1616from fedid import fedid, generate_fedid
    1717from authorizer import authorizer
     
    2828fl.addHandler(nullHandler())
    2929
    30 class fedd_access:
     30class access:
    3131    """
    3232    The implementation of access control based on mapping users to projects.
     
    6868                config.add_section("globals")
    6969        else:
    70             raise RunTimeError("No config to fedd_access")
     70            raise RunTimeError("No config to fedd.access")
    7171
    7272        # Create instance attributes from the static lists
    73         for a in fedd_access.bool_attrs:
     73        for a in access.bool_attrs:
    7474            if config.has_option("access", a):
    7575                setattr(self, a, config.get("access", a))
     
    7777                setattr(self, a, False)
    7878
    79         for a in fedd_access.emulab_attrs + fedd_access.id_attrs:
     79        for a in access.emulab_attrs + access.id_attrs:
    8080            if config.has_option("access", a):
    8181                setattr(self, a, config.get("access",a))
     
    174174        if not config.has_option("access", "project_allocation_uri"):
    175175            self.allocate_project = \
    176                 fedd_allocate_project_local(config, auth)
     176                allocate_project_local(config, auth)
    177177        else:
    178178            self.allocate_project = \
    179                 fedd_allocate_project_remote(config, auth)
     179                allocate_project_remote(config, auth)
    180180
    181181        # If the project allocator exports services, put them in this object's
     
    291291        Dump the state read from a configuration file.  Mostly for debugging.
    292292        """
    293         for a in fedd_access.bool_attrs:
     293        for a in access.bool_attrs:
    294294            print "%s: %s" % (a, getattr(self, a ))
    295         for a in fedd_access.emulab_attrs + fedd_access.id_attrs:
     295        for a in access.emulab_attrs + access.id_attrs:
    296296            print "%s: %s" % (a, getattr(self, a))
    297297        for k, v in self.attrs.iteritems():
Note: See TracChangeset for help on using the changeset viewer.