config methods for files for holding authority and slice records
authorsmbaker <smbaker@fc8clean.lan>
Wed, 24 Aug 2011 01:28:49 +0000 (18:28 -0700)
committersmbaker <smbaker@fc8clean.lan>
Wed, 24 Aug 2011 01:28:49 +0000 (18:28 -0700)
sface/config.py

index 885e6b6..d1e944b 100644 (file)
@@ -175,8 +175,21 @@ class Config:
 
     def getSliceRSpecFile(self):
         return os.path.expanduser("~/.sfi/%s.rspec" % self.getSlice())
-        
+
+    def getSliceRecordFile(self):
+        return os.path.expanduser("~/.sfi/%s.record" % self.getSlice())
+
+    def getAuthorityRecordFile(self):
+        return os.path.expanduser("~/.sfi/%s.record" % self.getAuthority())
+
+    def getAuthorityListFile(self, i=None):
+        if (i != None) and (i != 0):
+            return os.path.expanduser("~/.sfi/%s_list.record.%d" % (self.getAuthority(),i))
+        else:
+            return os.path.expanduser("~/.sfi/%s_list.record" % self.getAuthority())
+
 
 # configuration singleton
 config = Config()
 config.define_accessors()
+