5 class TrustedRootList():
6 def __init__(self, basedir="."):
7 self.basedir = os.path.join(basedir, "trusted_roots")
9 # create the directory to hold the files
11 os.makedirs(self.basedir)
\r
12 # if the path already exists then pass
\r
13 except OSError, (errno, strerr):
\r
17 def add_gid(self, gid):
18 fn = os.path.join(self.basedir, gid.get_hrn() + ".gid")
25 file_list = os.listdir(self.basedir)
26 for gid_file in file_list:
27 fn = os.path.join(self.basedir, gid_file)
28 if os.path.isfile(fn):
29 gid = GID(filename = fn)