6 from sfa.trust.gid import *
9 def __init__(self, dir):
12 # create the directory to hold the files
14 os.makedirs(self.basedir)
15 # if the path already exists then pass
16 except OSError, (errno, strerr):
20 def add_gid(self, gid):
21 fn = os.path.join(self.basedir, gid.get_hrn() + ".gid")
28 file_list = os.listdir(self.basedir)
29 for gid_file in file_list:
30 fn = os.path.join(self.basedir, gid_file)
31 if os.path.isfile(fn):
32 gid = GID(filename = fn)