4 from sfa.trust.gid import GID
7 def __init__(self, dir):
9 # create the directory to hold the files, if not existing
10 if not os.path.isdir (self.basedir):
11 os.makedirs(self.basedir)
13 def add_gid(self, gid):
14 fn = os.path.join(self.basedir, gid.get_hrn() + ".gid")
19 pattern=os.path.join(self.basedir,"*.gid")
20 gid_files = glob.glob(pattern)
21 for gid_file in gid_files:
23 if os.path.isfile(gid_file):
24 gid = GID(filename = gid_file)
28 def get_file_list(self):
30 pattern=os.path.join(self.basedir,"*.gid")
31 gid_files = glob.glob(pattern)
32 for gid_file in gid_files:
34 if os.path.isfile(gid_file):
35 gid_file_list.append(gid_file)