support for separate ListResources calls for slice and resources
[sface.git] / sface / config.py
index f913771..8333312 100644 (file)
@@ -183,16 +183,22 @@ class Config:
 
     def getSliceRSpecFile(self): return self.fullpath("%s.rspec" % self.getSlice())
 
 
     def getSliceRSpecFile(self): return self.fullpath("%s.rspec" % self.getSlice())
 
+    def getResourcesRSpecFile(self): return self.fullpath("resources.rspec")
+
     def getSliceRecordFile(self): return self.fullpath ("%s.record" % self.getSlice())
 
     def getAuthorityRecordFile(self): return self.fullpath ("%s/%s.record" % self.getAuthority())
 
     def getSliceRecordFile(self): return self.fullpath ("%s.record" % self.getSlice())
 
     def getAuthorityRecordFile(self): return self.fullpath ("%s/%s.record" % self.getAuthority())
 
-    def getAuthorityListFile(self, i=None):
+    def getAuthorityListRecordFile(self, i=None):
+        # DEPRECATED
         if (i != None) and (i != 0):
             return self.fullpath ("%s_list.record.%d" % (self.getAuthority(),i))
         else:
             return self.fullpath ("%s_list.record" % self.getAuthority())
 
         if (i != None) and (i != 0):
             return self.fullpath ("%s_list.record.%d" % (self.getAuthority(),i))
         else:
             return self.fullpath ("%s_list.record" % self.getAuthority())
 
+    def getAuthorityListFile(self):
+        return self.fullpath ("%s_list.xml" % self.getAuthority())
+
 
 # configuration singleton
 config = Config()
 
 # configuration singleton
 config = Config()