X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Ftrust%2Fhierarchy.py;h=ce74c9f59f0250562781ddecca88f2cc0f01d8dc;hb=3d7237fa0b5f2b4a60cb97c7fb3b6aecfd94558a;hp=8f4f9fceb5339b42475d196475cb92636371963f;hpb=de68461a2dd24ecba761c3a897812d13bd456745;p=sfa.git diff --git a/sfa/trust/hierarchy.py b/sfa/trust/hierarchy.py index 8f4f9fce..ce74c9f5 100644 --- a/sfa/trust/hierarchy.py +++ b/sfa/trust/hierarchy.py @@ -1,6 +1,6 @@ ## # This module implements a hierarchy of authorities and performs a similar -# function as the "tree" module of the original geniwrapper prototype. An HRN +# function as the "tree" module of the original SFA prototype. An HRN # is assumed to be a string of authorities separated by dots. For example, # "planetlab.us.arizona.bakers". Each component of the HRN is a different # authority, with the last component being a leaf in the tree. @@ -21,8 +21,7 @@ from sfa.util.report import * from sfa.trust.certificate import Keypair from sfa.trust.credential import * from sfa.trust.gid import GID, create_uuid - -from sfa.util.misc import * +from sfa.util.namespace import * from sfa.util.config import Config from sfa.util.sfaticket import SfaTicket @@ -111,7 +110,7 @@ class Hierarchy: def __init__(self, basedir = None): if not basedir: self.config = Config() - basedir = os.path.join(self.config.SFA_BASE_DIR, "authorities") + basedir = os.path.join(self.config.SFA_DATA_DIR, "authorities") self.basedir = basedir ## # Given a hrn, return the filenames of the GID, private key, and dbinfo