one more fix to renewsliver
[sfa.git] / sfa / trust / trustedroot.py
index 52ea2a2..2d4b89e 100644 (file)
@@ -4,13 +4,9 @@
 import os
 
 from sfa.trust.gid import *
-from sfa.util.config import Config
 
 class TrustedRootList:
-    def __init__(self, dir=None):
-        if not dir:
-            config = Config()
-            dir = config.config_path + os.sep + 'trusted_roots'
+    def __init__(self, dir):
         self.basedir = dir
         
         # create the directory to hold the files
@@ -38,3 +34,13 @@ class TrustedRootList:
 
         return gid_list
 
+    def get_file_list(self):
+        gid_file_list = []
+        
+        file_list = os.listdir(self.basedir)
+        for gid_file in file_list:
+            fn = os.path.join(self.basedir, gid_file)
+            if os.path.isfile(fn):
+                gid_file_list.append(fn)
+
+        return gid_file_list