def __init__(self, basedir = None):
if not basedir:
config = Config()
- basedir = config.config_path + os.sep + "authorities"
+ basedir = os.path.join(config.config_path, "authorities")
self.basedir = basedir
##
# Given a hrn, return the filenames of the GID, private key, and dbinfo
# @param create_parents if true, also create the parents if they do not exist
def create_auth(self, hrn, create_parents=False):
- report.trace("Hierarchy: creating authority: " + hrn)
+ trace("Hierarchy: creating authority: " + hrn)
# create the parent authority if necessary
parent_hrn = get_authority(hrn)
# @param hrn the human readable name of the authority to create.
def get_auth_info(self, hrn):
- #report.trace("Hierarchy: getting authority: " + hrn)
+ #trace("Hierarchy: getting authority: " + hrn)
if not self.auth_exists(hrn):
raise MissingAuthority(hrn)